Merge pull request #5693 from lateralusX/lateralusX/disable-stack-overflow-win-x64
[mono.git] / mcs / errors / cs0177-15.cs
1 // CS0177: The out parameter `x' must be assigned to before control leaves the current method
2 // Line: 6
3
4 public class GotoWithOut
5 {
6         public static void Test (bool cond, out int x)
7         {
8                 if (cond)
9                 {
10                         goto Label2;
11                 }
12                 else
13                 {
14                         goto Label;
15                 }
16                 Label:
17                 x = 0;
18                 Label2:
19                 return;
20         }
21 }