aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20041007-1.c
blob: ce524703d86d87b27636ddfd25b75df0e282f658 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR rtl-optimization/17027 */
/* Origin: dbk <sfc@village.uunet.be> */
/* Testcase by Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de> */

int bar(void);
void baz (void)  __attribute__ ((noreturn)); /* noreturn is required */

void foo (void) 
{
  while (bar ()) {
    switch (1) {
      default:
      baz ();
    }
  }
}