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


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

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