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]++; }