Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.old-deja / g++.pt / instantiate4.C
blob031b6badf7fc5cabca5b0fc3ad32a1b5052dd656
1 // { dg-do link }
2 // { dg-options "-frepo -Werror" }
3 // Build then link:
6 // Submitted by Melissa O'Neill <oneill@cs.sfu.ca>
7 // the vtable of Foo<int> wouldn't be generated
9 template <typename A>
10 struct Foo {
11    virtual void foo() {}
14 template <typename A>
15 struct Bar {   
16    void bar();
19 template <typename A> 
20 void Bar<A>::bar() {
21    Foo<A> oof;
24 int main () {
25     Bar<int> rab;
26     
27     rab.bar();
30 // { dg-final { cleanup-repo-files } }