aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit35.C
blob: c9282632aa182938a97cd0433ba362cf09577004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Build don't run:
// GROUPS passed templates
struct S 
{
  template <class T>
  void foo(T t);
};

template <>
void S::foo<int>(int i) { }

int main()
{
  S s;
  s.template foo<int>(3.0);
}