2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / spec3.C
blobcce36d27303739a2370be5634cd49d51e8fc53ab
1 // { dg-do run  }
2 extern "C" void abort();
4 class X
6   public:
7     virtual int f() const = 0;
8 };
10 template <class T>
11 class Y: public X
13   public:
14     virtual int f() const;
17 template <class T>
18 int Y<T>::f() const
20   abort();
21   return 0;
24 template <>
25 int Y<bool>::f() const;
27 template <>
28 int Y<bool>::f() const
30   return 0;
33 int main()
35   Y<bool> yb;
37   yb.f();