[System] Throw PlatformNotSupportedException if NetworkInformation.NetworkChange...
[mono-project.git] / mcs / tests / test-613.cs
blob1ddf19c0d97812ee4a32dd3f0030a2644e2e36e5
1 //
2 // Checks that we do not short-circuit the bitwise and operation
3 // See bug: 359789
4 //
5 public class M {
6 static bool called;
8 public static bool g() {
9 called = true;
10 return false;
13 public static int Main() {
14 called = false;
15 System.Console.WriteLine (false & g());
16 if (!called)
17 return 1;
19 called = false;
20 System.Console.WriteLine (true | g());
21 if (!called)
22 return 1;
23 return 0;