blob: 4f13b892af543377fb1a1ee7c0483f0873505c4d (
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 function_that_never_returns(void);
int foo(int c)
{
if (c)
return 1;
function_that_never_returns();
__builtin_unreachable();
}
/*
* check-name: __builtin_unreachable()
* check-command: test-linearize -Wno-decl $file
*
* check-known-to-fail
* check-output-start
foo:
.L0:
<entry-point>
cbr %arg1, .L3, .L2
.L2:
call function_that_never_returns
unreach
.L3:
ret.32 $1
* check-output-end
*/
|