Disable none-working stack overflow implementation on Windows x64 full AOT.
[mono.git] / mcs / tests / test-497.cs
1 using System;
2
3 public class PlotMenuItem
4 {
5         private EventHandler callback_;
6         static int set;
7
8         public PlotMenuItem ()
9         {
10         }
11
12         public PlotMenuItem (EventHandler callback)
13         {
14                 callback_ = callback;
15
16                 PlotMenuItem child = new PlotMenuItem ();
17                 child.Callback += new EventHandler (callback);
18         }
19
20         public static int Main ()
21         {
22                 PlotMenuItem pmi = new PlotMenuItem (new EventHandler (MenuItem_Click));
23                 pmi.Callback (null, null);
24                 
25                 if (set != 999)
26                         return 1;
27                         
28                 return 0;
29         }
30
31         static void MenuItem_Click (object sender, EventArgs e)
32         {
33                 set = 999;
34         }
35
36         public EventHandler Callback {
37                 get { return callback_; }
38                 set { callback_ = value; }
39         }
40 }