summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/label1.C
blob: a8baa0812bfe0205c58f42eea2e2c4d3d4abb952 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// { dg-do assemble  }

template <class T>
struct S {};

template <class T>
inline void g(T t)
{
 here:
  S<T> st;
  goto here;
}

template <class T>
void f(T t)
{
 here:
  g(t);
  goto here;
}

void h()
{
  f(3);
}