summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr55124.c
blob: 7ab172438a141539604e1b5c13ec68e1c6689a1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */

int a, b;
long c;
void foo(int);

void f2(void)
{
  unsigned long k = 1;

  foo(b ? k = 0 : 0);

  b = ((c = b) ? (k ? : (c = 0)) : a) * c;
}

void f1(void)
{
  f2();

  a = b | c;
}