aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr46637.c
blob: c765949e8ad61a871f43e992f62a4ce794742222 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR middle-end/46637 */

struct S { int s[5]; } *p;

void
foo (long x)
{
  long a = x == 1 ? 4L : 1L;
  asm ("" : "+m" (p->s[a]));
  p->s[0]++;
}