1 /* { dg-do compile } */
2 /* { dg-options "-Wuninitialized -O2" } */
3 /* { dg-message "warnings being treated as errors" "" {target "*-*-*"} 0 } */
15 #pragma GCC diagnostic error "-Wuninitialized"
16 foo(a
); /* { dg-error "uninitialized" } */
17 #pragma GCC diagnostic push
18 #pragma GCC diagnostic ignored "-Wuninitialized"
20 #pragma GCC diagnostic pop
21 foo(c
); /* { dg-error "uninitialized" } */
22 #pragma GCC diagnostic pop
23 foo(d
); /* { dg-warning "uninitialized" } */