modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/compile/20041007-1.c (about)

     1  /* PR rtl-optimization/17027 */
     2  /* Origin: dbk <sfc@village.uunet.be> */
     3  /* Testcase by Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de> */
     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  }