summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/930123-1.c
blob: 7365bae52003ca27f50612b7a004c6c06de46e38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
f(int *x)
{
  *x = 0;
}

main()
{
  int s, c, x;
  char a[] = "c";

  f(&s);
  a[c = 0] = s == 0 ? (x=1, 'a') : (x=2, 'b');
  if (a[c] != 'a')
    abort();
  exit (0);
}