Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/pr87205.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-options "-O2 -fdump-tree-optimized" } */ void f( int x ); void h( unsigned ix ) { switch( ix ) { case 0: f(42); break; case 1: f(42); break; case 2: f(42); break; case 3: f(42); break; case 4: f(42); break; case 5: f(42); break; default: __builtin_unreachable(); } } /* { dg-final { scan-tree-dump-not "if" "optimized" } } */ /* { dg-final { scan-tree-dump-not "switch" "optimized" } } */