Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / gtest-636.cs
1 using System;
2
3 class MainClass
4 {
5         public static int Main ()
6         {
7                 var res = XX () | YY();
8                 if (!res.Value)
9                         return 1;
10
11                 if (xx != 1)
12                         return 2;
13
14                 if (yy != 1)
15                         return 2;
16
17                 return 0;
18         }
19
20         static int xx;
21         static bool XX ()
22         {
23                 ++xx;
24                 Console.WriteLine ("XX");
25                 return true;
26         }       
27
28         static int yy;
29         static bool? YY ()
30         {
31                 if (xx == 1)
32                         ++yy;
33                         
34                 Console.WriteLine ("YY");
35                 return true;
36         }       
37 }