New test.
authorMartin Baulig <martin@novell.com>
Tue, 21 Jun 2005 13:08:44 +0000 (13:08 -0000)
committerMartin Baulig <martin@novell.com>
Tue, 21 Jun 2005 13:08:44 +0000 (13:08 -0000)
svn path=/trunk/mcs/; revision=46304

mcs/tests/gtest-175.cs [new file with mode: 0644]

diff --git a/mcs/tests/gtest-175.cs b/mcs/tests/gtest-175.cs
new file mode 100644 (file)
index 0000000..6f2727f
--- /dev/null
@@ -0,0 +1,26 @@
+using System;
+
+public class Foo
+{
+}
+
+public class X
+{
+       public static Foo Test (Foo foo, Foo bar)
+       {
+               return foo ?? bar;
+       }
+
+       public static int Main()
+       {
+               Foo[] array = new Foo [1];
+
+               Foo foo = new Foo ();
+               Foo bar = Test (array [0], foo);
+
+               if (bar == null)
+                       return 1;
+
+               return 0;
+       }
+}