Sign in
gnu
/
gcc
/
e5cfb9cac1d7aba9a8ea73bfe7922cfaff9d61f3
/
.
/
gcc
/
testsuite
/
gcc.dg
/
uninit-pr89296.c
blob: 9d81b32b9792586878eaf6e24ecfc65ea89fad9e [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O2 -Wuninitialized" } */
int
get_a_value
();
void
printk
(
const
char
*);
void
test_func
()
{
int
loop
;
while
(!
loop
)
{
/* { dg-warning "is used uninitialized" } */
loop
=
get_a_value
();
printk
(
"..."
);
}
}