diff options
Diffstat (limited to 'mcs/tests/test-65.cs')
-rwxr-xr-x | mcs/tests/test-65.cs | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/mcs/tests/test-65.cs b/mcs/tests/test-65.cs deleted file mode 100755 index b117ae309a4..00000000000 --- a/mcs/tests/test-65.cs +++ /dev/null @@ -1,51 +0,0 @@ -// -// This exercises the various ways in which the new operator works -// with value types. -// - -using System; - -struct S { - int v; -} - -class X { - static bool receive, create, create_and_box; - - static void receiver (S x) - { - receive = true; - } - - static object BoxS () - { - create_and_box = true; - return new S (); - } - - static S Plain () - { - create = true; - return new S (); - } - - static int Main () - { - object a = new S (); - receiver (new S ()); - S s = Plain (); - object o = BoxS (); - - if (a == null) - return 1; - if (receive == false) - return 2; - if (create == false) - return 3; - if (create_and_box == false) - return 4; - - Console.WriteLine ("Test pass"); - return 0; - } -} |