aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/linear/builtin_unreachable1.c
blob: 4dedfaba408628b4437246d59df0816e352f3013 (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
void die(void);

int foo(int c)
{
	if (c)
		return 1;
	die();
	__builtin_unreachable();
}

/*
 * check-name: builtin_unreachable1
 * check-command: test-linearize -Wno-decl $file
 *
 * check-known-to-fail
 * check-output-start
foo:
.L0:
	<entry-point>
	cbr         %arg1, .L3, .L2

.L3:
	ret.32      $1

.L2:
	call        die
	unreachable


 * check-output-end
 */