2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / explicit13.C
bloba0dbfaa6062a82b02fedca45294468869433c920
1 // { dg-do link  }
2 // { dg-options "-ansi -pedantic-errors -w" }
3 // GROUPS passed templates
5 template <class U>
6 struct S 
8   template <class T>
9   void foo(T t);
11   template <class T>
12   void bar(T t) { this->template foo<U>(3.74); }
15 template <>
16 template <>
17 void S<int>::foo(int) { }
19 int main()
21   S<int> s;
22   s.bar(3);