aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/cgoto02.c
blob: 932c3164e5ee0144101a296c6586e2d09fac1d8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
int foo(int a)
{
	void *label = a ? &&l1 : &&l2;
	goto *label;
l1:
	return a;
l2:
	return 0;
}

/*
 * check-name: cgoto02
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-returns: %arg1
 */