Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2008-09-22 14:54:53 +0400
committerMarek Safar <marek.safar@gmail.com>2008-09-22 14:54:53 +0400
commit5cf7ad2307b8d94c0bcb9df3204ef330d038e134 (patch)
tree950ec0a91a89db6d05508058650af4712bb3fbbf /mcs/tests/test-591.cs
parenta08e10cc3e8a4a6ba2ce3110618943aa6f3aaceb (diff)
parentbf8280aac5d7c2ebf65fcf9b576bbd4e4a14d9fb (diff)
New tests
svn path=/trunk/mcs/; revision=113704
Diffstat (limited to 'mcs/tests/test-591.cs')
-rw-r--r--mcs/tests/test-591.cs43
1 files changed, 0 insertions, 43 deletions
diff --git a/mcs/tests/test-591.cs b/mcs/tests/test-591.cs
deleted file mode 100644
index a08d1636ddc..00000000000
--- a/mcs/tests/test-591.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-// Compiler options: -unsafe
-
-using System;
-
-namespace Bug
-{
- unsafe struct Demo
- {
- fixed bool test [4];
-
- bool Fixed ()
- {
- fixed (bool* data_ptr = test)
- {
- return true;
- }
- }
-
- static bool Foo (int [] data)
- {
- fixed (int* data_ptr = data)
- {
- return data_ptr == null ? true : false;
- }
- }
-
- public static int Main ()
- {
- if (!Foo (null))
- return 1;
-
- if (!Foo (new int [0]))
- return 2;
-
- if (!new Demo().Fixed ())
- return 3;
-
- Console.WriteLine ("OK");
- return 0;
- }
- }
-}
-