gcc/testsuite/gcc.dg/ifelse-1.c
raw| 1 | /* |
| 2 | { dg-do compile } |
| 3 | { dg-options "-Wno-old-style-definition -W -Wall" } |
| 4 | */ |
| 5 | |
| 6 | |
| 7 | extern int bar (); |
| 8 | extern int com (); |
| 9 | extern int baz (); |
| 10 | void |
| 11 | foo (a,b) |
| 12 | int a, b; |
| 13 | { |
| 14 | if (a) |
| 15 | if (b) |
| 16 | bar (); |
| 17 | else |
| 18 | com (); /* { dg-bogus ".*warning.*" "bogus warning" } */ |
| 19 | else |
| 20 | baz (); |
| 21 | } |