1 /* { dg-do compile } */
2 /* { dg-options "-fgimple -O -Wmaybe-uninitialized" } */
4 unsigned int __GIMPLE (ssa
,startwith("uninit1"))
7 /* The warning is not bogus, because (5 & 3) != 0 and therefore if v == 5,
8 the value of undef is used without being initialized. */
9 unsigned int undef
; /* { dg-warning "may be used uninitialized" } */
21 /* 'undef' is defined conditionally (under 'v != 5' predicate) */
26 /* An undef value flows into a phi. */
28 undef_1
= __PHI (__BB2
: undef_5(D
), __BB3
: undef_8
);
35 /* The phi value is used here (under 'v & 3' predicate). */
45 _2
= __PHI (__BB5
: _9
, __BB6
: _10
);