URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [instantiate4.C] - Rev 305
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do link }
// { dg-options "-frepo -Werror" }
// { dg-require-host-local "" }
// { dg-skip-if "dkms are not final links" { vxworks_kernel } }
// Submitted by Melissa O'Neill <oneill@cs.sfu.ca>
// the vtable of Foo<int> wouldn't be generated
template <typename A>
struct Foo {
virtual void foo() {}
};
template <typename A>
struct Bar {
void bar();
};
template <typename A>
void Bar<A>::bar() {
Foo<A> oof;
}
int main () {
Bar<int> rab;
rab.bar();
}
// { dg-final { cleanup-repo-files } }
Go to most recent revision | Compare with Previous | Blame | View Log