summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20011205-1.c
blob: ffc5ac419ea43a1f56b9d08d5992928e0db56a55 (plain)
1
2
3
4
5
6
7
8
9
10
/* Failure to mark_addressable all operands before evaluation means we
   don't set up the proper temporaries, which leaves us with an asm that
   doesn't match its contraints.  */

long foo()
{
  long x;
  asm("" : "=r"(x) : "m"(x));
  return x;
}