Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-941.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f5d90c046fb315d3dd86ad38ca45d88ba4505b19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
public class GotoCodeFlowBug
{
	public static void Test (bool cond, out int x)
	{
		if (cond)
		{
			goto Label;
		}
		Label:
		x = 0;
	}

	public static void Test2 (bool cond, out int x)
	{
		if (cond)
		{
			goto Label;
		}
		else
		{
			goto Label;
		}
		Label:
		x = 0;
	}

	public static void Main ()
	{
	}
}