aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr24414.c
blob: bd12f0c849207fa7c22c00d30eb9c17a30d30420 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do run } */
/* { dg-options "-O2" } */
int test;

int
main ()
{
  int x = test;
  asm ("movl $1,test");
  if (x + test != 1)
    __builtin_trap ();
  return 0;
}