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:
Diffstat (limited to 'mcs/tests/unsafe-2.cs')
-rwxr-xr-xmcs/tests/unsafe-2.cs25
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;
- }
-}
-
-