1 /* { dg-do compile } */
2 /* { dg-options "-fgimple -O -Wmaybe-uninitialized" } */
4 unsigned int __GIMPLE (ssa
,startwith("uninit1"))
7 unsigned int undef
; /* { dg-warning "may be used uninitialized" } */
19 undef_8
= 8u; // 'undef' is defined conditionally (under 'v != 1' predicate)
23 // An undef value flows into a phi.
24 undef_1
= __PHI (__BB2
: undef_5(D
), __BB3
: undef_8
);
25 if (v_4(D
) != 2u) // This condition is neither a superset nor a subset of 'v != 1'.
31 _9
= undef_1
; // The phi value is used here (under 'v != 2' predicate).
39 _2
= __PHI (__BB5
: _9
, __BB6
: _10
);