1 /* Test diagnostics for empty bodies in if / else. */
2 /* Origin: Joseph Myers <joseph@codesourcery.com> */
3 /* { dg-do compile } */
4 /* { dg-options "-Wextra" } */
10 ; /* { dg-warning "warning: empty body in an if-statement" } */
12 ; /* By design we don't warn in this case. */
18 ; /* { dg-warning "warning: empty body in an else-statement" } */