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-05-05 21:45:56 +0400
committerMarek Safar <marek.safar@gmail.com>2008-05-05 21:45:56 +0400
commite9db03a85be6a84f0841d679d3d10c0ddc5cfbd6 (patch)
tree84e3d5821f6ddbb6843f713f684518bd3d2de293 /mcs/tests/gtest-392.cs
parent94e439fc7dc519e6d696940efc15d512eafd7e6c (diff)
New test, fixed too agressive optimization
svn path=/trunk/mcs/; revision=102554
Diffstat (limited to 'mcs/tests/gtest-392.cs')
-rwxr-xr-xmcs/tests/gtest-392.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/mcs/tests/gtest-392.cs b/mcs/tests/gtest-392.cs
new file mode 100755
index 00000000000..89eed95540f
--- /dev/null
+++ b/mcs/tests/gtest-392.cs
@@ -0,0 +1,26 @@
+using System;
+
+public class DieSubrangeType
+{
+ public int? UpperBound
+ {
+ get;
+ private set;
+ }
+
+ public DieSubrangeType ()
+ {
+ UpperBound = 1;
+ }
+}
+
+class X
+{
+ static int Main ()
+ {
+ DieSubrangeType subrange = new DieSubrangeType ();
+ Console.WriteLine (subrange.UpperBound != null);
+ Console.WriteLine ((int) subrange.UpperBound);
+ return (int) subrange.UpperBound - 1;
+ }
+} \ No newline at end of file