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>2007-11-12 21:50:55 +0300
committerMarek Safar <marek.safar@gmail.com>2007-11-12 21:50:55 +0300
commit16b6ad7b3241b3502646f20074521f0d92052c31 (patch)
tree8be4ca17822856f0834ffddcff72a1263743861e /mcs/tests/gtest-117.cs
parent9d557a286d06232b030ddf315174b52e3b38e8d6 (diff)
More tests.
svn path=/trunk/mcs/; revision=89483
Diffstat (limited to 'mcs/tests/gtest-117.cs')
-rw-r--r--mcs/tests/gtest-117.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/mcs/tests/gtest-117.cs b/mcs/tests/gtest-117.cs
index 52069a7ac13..1e07e91cf03 100644
--- a/mcs/tests/gtest-117.cs
+++ b/mcs/tests/gtest-117.cs
@@ -46,6 +46,16 @@ class X
return o is int[];
}
+ public static int TestC ()
+ {
+ int? i = null;
+ if (i is int) {
+ return (int) i;
+ }
+
+ return 3;
+ }
+
static int Main ()
{
if (Foo<int>.Test (3))
@@ -66,6 +76,9 @@ class X
if (!TestB(a))
return 5;
+ if (TestC () != 3)
+ return 6;
+
Console.WriteLine ("OK");
return 0;
}