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
Require target lra in gcc.dg/pr108095.c
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
uninit-pr89296.c
blob
9d81b32b9792586878eaf6e24ecfc65ea89fad9e
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wuninitialized" } */
3
4
int
get_a_value
();
5
void
printk
(
const char
*);
6
void
test_func
()
7
{
8
int
loop
;
9
while
(!
loop
) {
/* { dg-warning "is used uninitialized" } */
10
loop
=
get_a_value
();
11
printk
(
"..."
);
12
}
13
}