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-11-28 18:55:34 +0300
committerMarek Safar <marek.safar@gmail.com>2008-11-28 18:55:34 +0300
commit9c6083df226e05e0e490baadafb2f8e53573f9a8 (patch)
tree356c7bfac83ca8a46bdb8a8bfe2136c87922f8c0 /mcs/tests/gtest-430.cs
parenta74562a497f5fc172b3c472679721955b8e6abb1 (diff)
New test.
svn path=/trunk/mcs/; revision=120242
Diffstat (limited to 'mcs/tests/gtest-430.cs')
-rw-r--r--mcs/tests/gtest-430.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/mcs/tests/gtest-430.cs b/mcs/tests/gtest-430.cs
new file mode 100644
index 00000000000..ccbb5621d3d
--- /dev/null
+++ b/mcs/tests/gtest-430.cs
@@ -0,0 +1,21 @@
+using System;
+
+public class Tmp
+{
+ public int stuff;
+}
+public class Driver
+{
+ Tmp tmp;
+
+ public int? Prop {
+ get { return tmp != null ? tmp.stuff : (int?)null; }
+ }
+
+ static int Main ()
+ {
+ int? r = new Driver().Prop;
+ Console.WriteLine (r);
+ return r.HasValue ? 1 : 0;
+ }
+}