Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-anon-26.cs
1 namespace TestGotoLabels
2 {
3         class GotoLabelsTest
4         {
5                 public delegate void MyDelegate ();
6
7                 public static int Main ()
8                 {
9                         TestMethod2 (delegate () {
10                                 goto outLabel;
11                         outLabel:
12                                 return;
13                         });
14
15                         return 0;
16                 }
17
18                 public static void TestMethod2 (MyDelegate md)
19                 {
20                         md.Invoke ();
21                 }
22         }
23