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

template <int I>
struct S1 { };

template <class T>
struct S2 {
  enum { x = 3 };

  void f(S1<x>&);
};

template <class T>
void S2<T>::f(S1<x>&)
{
}