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>2011-02-17 18:18:39 +0300
committerMarek Safar <marek.safar@gmail.com>2011-02-17 19:39:35 +0300
commitf4326c0bce9368cee0ff6e677d29b884510bce1a (patch)
tree30f9c5d6ce7797e66ebc702a6729d7ac67263d3b /mcs/tests/test-196.cs
parentc5e37f197d5a684a33541c62bcf6f1fa5dffe2a4 (diff)
Correctly set underlying type of reduced side-effect constant expression
Diffstat (limited to 'mcs/tests/test-196.cs')
-rw-r--r--mcs/tests/test-196.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/mcs/tests/test-196.cs b/mcs/tests/test-196.cs
index 23bf372a588..2721b2d8cb4 100644
--- a/mcs/tests/test-196.cs
+++ b/mcs/tests/test-196.cs
@@ -21,6 +21,12 @@ class X {
const byte b = 255;
const int i = b << int.MaxValue;
const int i2 = b << int.MaxValue;
+
+ long token = uint.MaxValue;
+ const int column_mask = (int)((1 << 32) - 1);
+ int r2 = (int) (token & column_mask);
+ if (r2 != 0)
+ return 1;
return 0;
}