diff options
Diffstat (limited to 'mcs/tests/test-89.cs')
-rwxr-xr-x | mcs/tests/test-89.cs | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/mcs/tests/test-89.cs b/mcs/tests/test-89.cs deleted file mode 100755 index 3f1b86ed6b2..00000000000 --- a/mcs/tests/test-89.cs +++ /dev/null @@ -1,34 +0,0 @@ -// -// This test is used to make sure that we correctly create value -// types in the presence of arrays. Check bug 21801 for a history -// of the bug -// -using System; - -struct X { - int value; - - X (int a) - { - value = a; - } - - static X F (int a) - { - return new X (a); - } - - static int Main () - { - X [] x = { new X (40), F (10) }; - - if (x [0].value != 40) - return 1; - - if (x [1].value != 10) - return 2; - - Console.WriteLine ("test ok"); - return 0; - } -} |