URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do link }
|
// { dg-do link }
|
// { dg-options "-frepo -Werror" }
|
// { dg-options "-frepo -Werror" }
|
// { dg-require-host-local "" }
|
// { dg-require-host-local "" }
|
// { dg-skip-if "dkms are not final links" { vxworks_kernel } }
|
// { dg-skip-if "dkms are not final links" { vxworks_kernel } }
|
|
|
|
|
// Submitted by Melissa O'Neill
|
// Submitted by Melissa O'Neill
|
// the vtable of Foo wouldn't be generated
|
// the vtable of Foo wouldn't be generated
|
|
|
template
|
template
|
struct Foo {
|
struct Foo {
|
virtual void foo() {}
|
virtual void foo() {}
|
};
|
};
|
|
|
template
|
template
|
struct Bar {
|
struct Bar {
|
void bar();
|
void bar();
|
};
|
};
|
|
|
template
|
template
|
void Bar::bar() {
|
void Bar::bar() {
|
Foo oof;
|
Foo oof;
|
}
|
}
|
|
|
int main () {
|
int main () {
|
Bar rab;
|
Bar rab;
|
|
|
rab.bar();
|
rab.bar();
|
}
|
}
|
|
|
// { dg-final { cleanup-repo-files } }
|
// { dg-final { cleanup-repo-files } }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.