repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix thinko in previous change
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
noreturn-8.c
blob
ce41cabfa5151f83948f6122866abe7bd17ecd6b
1
/* { dg-do run { target { nonpic || pie_enabled } } } */
2
/* { dg-options "-O2" } */
3
void
exit
(
int
);
4
void
noreturn_autodetection_failed
();
5
__attribute__
((
noinline
))
int
6
detect_noreturn
()
7
{
8
exit
(
0
);
9
}
10
int
11
main
(
void
)
12
{
13
detect_noreturn
();
14
noreturn_autodetection_failed
();
15
return
0
;
16
}