projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be03275
)
New test.
author
Martin Baulig
<martin@novell.com>
Tue, 21 Jun 2005 13:08:44 +0000
(13:08 -0000)
committer
Martin 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]
patch
|
blob
diff --git a/mcs/tests/gtest-175.cs
b/mcs/tests/gtest-175.cs
new file mode 100644
(file)
index 0000000..
6f2727f
--- /dev/null
+++ b/
mcs/tests/gtest-175.cs
@@ -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;
+ }
+}