aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/linear/goto-stmt-expr-short-circuit.c
blob: a5953e73bc937fc029f1b72a20c7bca292eaa852 (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
31
int foo(int p)
{
	goto inside;
	if (0 && ({
inside:
		return 1;
		2;
		}))
		return 3;
	return 4;
}

int bar(int p)
{
	if (0 && ({
inside:
		return 1;
		2;
		}))
		return 3;
	goto inside;
}

/*
 * check-name: goto-stmt-expr-short-circuit
 * check-command: test-linearize -Wno-decl $file
 *
 * check-error-ignore
 * check-output-ignore
 * check-output-excludes: END
 */