FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / instantiate4.C
blob296356b713f8e95c3879c94492e22f1181dcc350
1 // Build then link:
3 // Special g++ Options: -frepo -Werror
5 // Submitted by Melissa O'Neill <oneill@cs.sfu.ca>
6 // the vtable of Foo<int> wouldn't be generated
8 template <typename A>
9 struct Foo {
10    virtual void foo() {}
13 template <typename A>
14 struct Bar {   
15    void bar();
18 template <typename A> 
19 void Bar<A>::bar() {
20    Foo<A> oof;
23 int main () {
24     Bar<int> rab;
25     
26     rab.bar();