gcc/testsuite/gcc.c-torture/compile/20041007-1.c
raw| 1 | /* PR rtl-optimization/17027 */ |
| 2 | /* Origin: dbk <[email protected]> */ |
| 3 | /* Testcase by Christian Ehrhardt <[email protected]> */ |
| 4 | |
| 5 | int bar(void); |
| 6 | void baz (void) __attribute__ ((noreturn)); /* noreturn is required */ |
| 7 | |
| 8 | void foo (void) |
| 9 | { |
| 10 | while (bar ()) { |
| 11 | switch (1) { |
| 12 | default: |
| 13 | baz (); |
| 14 | } |
| 15 | } |
| 16 | } |