aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr87205.c
blob: 129e60747e2e5ce91849a093417c76532788d65f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { 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" } } */