1 /* PR tree-optimization/45083 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -Wuninitialized" } */
5 struct S
{ char *a
; unsigned b
; unsigned c
; };
6 extern int foo (const char *);
7 extern void bar (int, int);
12 struct S cs
[1]; /* { dg-message "was declared here" } */
13 switch (cs
->b
) /* { dg-warning "cs\[^\n\r\]*\\.b\[^\n\r\]*is used uninitialized" } */
16 if (foo (cs
->a
)) /* { dg-warning "cs\[^\n\r\]*\\.a\[^\n\r\]*may be used uninitialized" } */
17 bar (cs
->c
, cs
->b
); /* { dg-warning "cs\[^\n\r\]*\\.c\[^\n\r\]*may be used uninitialized" } */