diff options
Diffstat (limited to 'mcs/tests/unsafe-2.cs')
-rwxr-xr-x | mcs/tests/unsafe-2.cs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/mcs/tests/unsafe-2.cs b/mcs/tests/unsafe-2.cs deleted file mode 100755 index adedee29633..00000000000 --- a/mcs/tests/unsafe-2.cs +++ /dev/null @@ -1,25 +0,0 @@ -// -// This test excercises stackalloc, some pointer arithmetic, -// and dereferences -// -using System; -unsafe class X { - static int Main () - { - char *ptr = stackalloc char [10]; - int i; - - for (i = 0; i < 10; i++) - ptr [i] = (char) (i + 10); - - for (i = 0; i < 10; i++){ - if (*ptr != (char) (i + 10)) - return 200 + i; - ptr++; - } - Console.WriteLine ("Ok"); - return 0; - } -} - - |