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:
authorMiguel de Icaza <miguel@gnome.org>2003-07-05 00:52:17 +0400
committerMiguel de Icaza <miguel@gnome.org>2003-07-05 00:52:17 +0400
commit5dd24715bbf236f5c127ca0faef267d08b43e9b5 (patch)
treef21796223b8fab7610e455fb04ea12ea1462a1f9 /mcs/tests/test-196.cs
parent8f0643d9dadb67ec54edc7e6a64d181df9b1d117 (diff)
Add new test
svn path=/trunk/mcs/; revision=15945
Diffstat (limited to 'mcs/tests/test-196.cs')
-rw-r--r--mcs/tests/test-196.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/tests/test-196.cs b/mcs/tests/test-196.cs
new file mode 100644
index 00000000000..8a984f0502f
--- /dev/null
+++ b/mcs/tests/test-196.cs
@@ -0,0 +1,23 @@
+//
+// Tests related to constants and binary operators (bug 39018)
+//
+
+class X {
+ void Bug1 () {
+ uint a = 1, b = 2;
+ long l = (b & (0x1 << 31));
+ }
+
+ void Bug2 () {
+ uint a = 1, b = 2;
+ const int l = 1;
+ const int r = 31;
+
+ long ll = (b & (l << r));
+ }
+
+ static void Main ()
+ {
+ return 0;
+ }
+}