aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/enum12.C
blob: 595954b9167b5123f98ea3f54284077e7ed1c37b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-do assemble  }

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>&)
{
}