[w32file] Move MonoIO.Find{First,Next,Close} to managed
[mono.git] / mcs / tests / test-613.cs
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;
7         
8         public static bool g() {
9                 called = true;
10                 return false;
11         }
12
13         public static int Main() {
14                 called = false;
15                 System.Console.WriteLine (false & g());
16                 if (!called)
17                         return 1;
18
19                 called = false;
20                 System.Console.WriteLine (true | g());
21                 if (!called)
22                         return 1;
23                 return 0;
24         }
25 }