1 /* Positive test for uninitialized variables. */
2 /* { dg-do compile } */
3 /* { dg-options "-O -Wuninitialized" } */
7 void f1(int parm
) /* { dg-bogus "uninitialized" "parameter" } */
9 sink
= parm
; /* { dg-bogus "uninitialized" "parameter" } */
15 sink
= x
; /* { dg-warning "is used" "unconditional" } */
20 int x
; /* { dg-warning "may be used" "conditional" } */
28 int x
; /* { dg-bogus "uninitialized" "easy if" } */
38 int x
, i
; /* { dg-bogus "uninitialized" "easy loop" } */
39 for (i
= 0; i
< 10; ++i
)