aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/label1.C
blob: 964d1d7afc354f22fd2543ce260420880f57b8a0 (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
// Build don't link:

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);
}