aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/instantiate1.C
blob: 11f9c781988d3ed8ef0aa43c963273cc85278b20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Build don't link:

template <class T>
void f(T t) {}

template void f<int>(int);
template void f<>(long);

template <class T>
struct S
{
  void bar(int) {}
  
  template <class U>
  void baz(U u) {}
};


template S<char>;
template void S<int>::bar(int);
template void S<double>::baz<short>(short);
template void S<long>::baz<>(char);