summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/asm2.C
blob: 4e3244169c779d9d83b42779251dddbfcd392274 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR inline-asm/15740 */
/* { dg-do compile } */
/* { dg-options "-O" } */

void foo(void)
{
  int a, b;
  a = 1;
  b = a + 1;
  asm ("" : : "m" (a));
}