aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20180915-1.c
blob: be5c4f03a6b88da41b21d0c126bc03cc7ac263ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* PR middle-end/86864 */
/* Testcase by Serge Belyshev <belyshev@depni.sinp.msu.ru> */

long a;
void f ();
void g (int b, int c, int d)
{
  switch (b)
    {
    case 42:
    case 29:
    case 48:
    case 40:
    case 32:
      c = 2;
      break;
    case 0:
      c = 1;
      break;
    default:
      __builtin_unreachable ();
    }
  if (d || a)
    f ();
  if (c == 1)
    f ();
}