aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/linear/goto-stmt-expr-conditional.c
blob: bbfcb3ebc03957099a3cad1f79ec2a7d719e98e3 (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
int t(void)
{
	goto inside;
	return 1 ? 2 : ({
inside:
			return 3;
			4;
		    });
}

void f(int x, int y)
{
	1 ? x : ({
a:
		 y;
	});
	goto a;
}

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