summaryrefslogtreecommitdiff
path: root/mcs/tests/test-870.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/tests/test-870.cs')
-rw-r--r--mcs/tests/test-870.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/tests/test-870.cs b/mcs/tests/test-870.cs
new file mode 100644
index 0000000000..5faceb7b35
--- /dev/null
+++ b/mcs/tests/test-870.cs
@@ -0,0 +1,17 @@
+public class Test
+{
+ static void Foo (ushort p)
+ {
+ p = 0x0000;
+ p |= 0x0000;
+ p &= 0x0000;
+
+ const ushort c = 0x0000;
+ p &= c;
+ }
+
+ public static void Main ()
+ {
+ Foo (1);
+ }
+} \ No newline at end of file