diff options
author | Martin Baulig <martin@novell.com> | 2005-06-21 17:08:44 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2005-06-21 17:08:44 +0400 |
commit | 2a15d4f8a096bc516a0c773b7c96016646b844ea (patch) | |
tree | 57ea3b0314ee1ebbd90aa9f7511f233b29b6ae97 /mcs/tests/gtest-175.cs | |
parent | be03275f67e389c9a78e82831df85fba434ae5a3 (diff) |
New test.
svn path=/trunk/mcs/; revision=46304
Diffstat (limited to 'mcs/tests/gtest-175.cs')
-rw-r--r-- | mcs/tests/gtest-175.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/mcs/tests/gtest-175.cs b/mcs/tests/gtest-175.cs new file mode 100644 index 00000000000..6f2727f8175 --- /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; + } +} |