2 /* { dg-do compile } */
3 /* { dg-options "-Wduplicated-branches -O2" } */
10 if (x
== 0) /* { dg-error "undeclared|not declared" } */
23 *p
= x
; /* { dg-error "undeclared|not declared" } */
37 *p
= x
; /* { dg-error "undeclared|not declared" } */
46 if (x
== 0) /* { dg-error "undeclared|not declared" } */
53 if (x
== 0) /* { dg-error "not declared" "" { target c++ } } */
66 *p
= x
; /* { dg-error "undeclared|not declared" } */
72 if (x
== 0) /* { dg-error "not declared" "" { target c++ } } */
87 *p
= x
; /* { dg-error "undeclared|not declared" } */
91 if (x
== 0) /* { dg-error "not declared" "" { target c++ } } */
102 ({ x
++; }); /* { dg-error "undeclared|not declared" } */
113 ({ x
++; }); /* { dg-error "undeclared|not declared" } */