Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / pop.cs
1 class pop_test {
2
3         public static int t = 4;
4         
5         static int f ()
6         {
7                 t = 0;
8                 
9                 return 1;
10         }
11         
12         static int Main ()
13         {
14                 if (t != 4)
15                         return 1;
16                 
17                 // we ignore the return value - the compiler emits a pop
18                 f ();
19                 
20                 if (t != 0)
21                         return 1;
22
23                 return 0;
24         }
25 }