1 /* { dg-do run } */ 2 /* { dg-options "-O2" } */ 3 int test; 4 5 int main()6 main () 7 { 8 int x = test; 9 asm ("movl $1,test"); 10 if (x + test != 1) 11 __builtin_trap (); 12 return 0; 13 } 14