summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/inline-asm-1.c
blob: 0044cb761b687a3410c2318a3292ea6b51d4589d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR tree-opt/106087,
   simple_dce_from_worklist would delete the
   inline-asm when it was still being referenced
   by the other ssa name. */

static int t;

int f(void)
{
  int tt, tt1;
  asm("":"=r"(tt), "=r"(tt1));
  t = tt1;
  return tt;
}