OSDN Git Service

* lib/g++-dg.exp (g++-dg-test): Add "repo" option.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / explicit13.C
1 // { dg-do link  }
2 // { dg-options "-ansi -pedantic-errors -w" }
3 // GROUPS passed templates
4
5 template <class U>
6 struct S 
7 {
8   template <class T>
9   void foo(T t);
10
11   template <class T>
12   void bar(T t) { this->template foo<U>(3.74); }
13 };
14
15 template <>
16 template <>
17 void S<int>::foo(int) { }
18
19 int main()
20 {
21   S<int> s;
22   s.bar(3);
23 }