Move Enum and CorElementType to shared (dotnet/coreclr#23177)
[mono-project.git] / mcs / tests / test-904.cs
blob1f9516d3266f09c6f771f01de54aa2f0f24d6236
1 using System;
3 class Test
5 public static bool Foo (out int v)
7 v = 0;
8 return false;
11 static void Main()
13 bool b = false;
15 int a1;
16 var r1 = (false || Foo (out a1)) ? a1 : 1;
18 int a2;
19 var r2 = (true && Foo (out a2)) ? 2 : a2;
21 int a3;
22 var r3 = (b || Foo (out a3)) && Foo (out a3);
23 int b3 = a3;
25 int a4;
26 var r4 = ((b || Foo (out a4)) && Foo (out a4));
27 int b4 = a4;
29 int a5;
30 if ((b || Foo (out a5)) && (b || Foo (out a5)))
31 Console.WriteLine ();
32 else
33 Console.WriteLine (a5);