aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/link1.C
blob: b1991f62106223a70403195a41b86751738afabe (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
26
27
28
29
// Build don't run:
// Origin: Mark Mitchell <mark@codesourcery.com>

template <class T>
int f(T);

template <class T>
struct S {
  template <class U>
  friend int f(U) { return 0; }
};

int k = f(2);

template <class T>
int g(T);

int h = g(7);

template <class T>
int g(T) {
  S<T> si;
  return 0;
}

int main()
{
}