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-10-13 21:05:30 +0400
committerMarek Safar <marek.safar@gmail.com>2008-10-13 21:05:30 +0400
commitad8cae428f80ae253fe7af06fb1c9719f64f121f (patch)
tree30da93587e5002b7882598be8f4b08083306c13a /mcs/tests/test-689.cs
parentb2091f606b907ee71634bac4d24eb057f4496be9 (diff)
New test.
svn path=/trunk/mcs/; revision=115672
Diffstat (limited to 'mcs/tests/test-689.cs')
-rwxr-xr-xmcs/tests/test-689.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/mcs/tests/test-689.cs b/mcs/tests/test-689.cs
new file mode 100755
index 00000000000..ee94dc8af12
--- /dev/null
+++ b/mcs/tests/test-689.cs
@@ -0,0 +1,22 @@
+// Compiler options: -unsafe
+
+public struct Sample
+{
+ public static unsafe void Foo (byte* a, byte* b)
+ {
+ int* p = (int*)0;
+ long* s = (long*) ++p;
+ s = (long*) --p;
+
+ int v = 0;
+ s = (long*) -v;
+ s = (long*) +v;
+
+ byte c = (byte)(*a++ * *b++);
+ }
+
+ public static void Main ()
+ {
+ }
+}
+