summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/asm1.C
blob: 741759fd2f45c468d5e2ac82663e7db7041ea16a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/24761
// { dg-do compile }

template <int>
int f (int i)
{
  asm ("# %0 %1" : "+r" (i));
  return i;
}

int main ()
{
  return f<0> (0) + f<1> (0);
}