Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / tests / test-debug-23.cs
1 // Tests for explicit sequence point on non-empty stack
2
3 using System;
4
5 class Program
6 {
7         void Test_1 ()
8         {
9                 Prop.BindCore();
10         }
11         
12         void Test_2 ()
13         {
14                 Prog ().BindCore();
15         }
16         
17         void Test_3 ()
18         {
19                 new Program ().BindCore ();
20         }
21         
22         void Test_4 ()
23         {
24                 Func<Program> f = () => new Program ();
25                 f ().BindCore ();
26         }
27
28         public int BindCore ()
29         {
30                 return 3;
31         }
32
33         public Program Prog () 
34         {
35                 return this;
36         }
37
38         public Program Prop {
39                 get {
40                         return this;
41                 }
42         }
43
44         public static void Main ()
45         {
46         }
47 }