Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
gcc.dg
/
infinite-loop.c
blob: 25037a2027ec53a5f4822da1724840a61bba62df [
file
] [
log
] [
blame
]
/* { dg-do link } */
/* { dg-options "-O2" } */
void
link_error
(
void
);
void
__attribute__
((
noinline
,
noipa
))
foo
(
int
a
)
{
int
b
=
0
;
while
(
1
)
{
if
(!
a
)
break
;
b
=
1
;
}
if
(
b
!=
0
)
link_error
();
}
int
main
()
{
foo
(
0
);
}