summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit35.C
blob: f174e8f9dd0889acc0c8ef09ac3953a39ac59938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do link  }
// { dg-options "-ansi -pedantic-errors -w" }
// GROUPS passed templates
struct S 
{
  template <class T>
  void foo(T t);
};

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

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