2010-04-07 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-270.cs
blob8b1093d26362d78457f2b5bc5aa09365861b4b19
1 using System;
3 class X
5 static int Test (int? a)
7 switch (a) {
8 case 0:
9 return 0;
10 case 1:
11 return 1;
13 default:
14 return -1;
18 static int Main ()
20 if (Test (null) != -1)
21 return 1;
22 if (Test (0) != 0)
23 return 2;
25 return 0;