URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do assemble }
|
// { dg-do assemble }
|
|
|
// Adapted from testcase by Corey Kosak
|
// Adapted from testcase by Corey Kosak
|
|
|
template
|
template
|
struct moo_t {
|
struct moo_t {
|
struct cow_t {};
|
struct cow_t {};
|
};
|
};
|
|
|
template void foo(typename moo_t::cow_t) {}
|
template void foo(typename moo_t::cow_t) {}
|
|
|
template void foo(moo_t) {
|
template void foo(moo_t) {
|
typename moo_t::cow_t p;
|
typename moo_t::cow_t p;
|
foo(p); // { dg-bogus "" "" { xfail *-*-* } } - no matching function for call -
|
foo(p); // { dg-bogus "" "" { xfail *-*-* } } - no matching function for call -
|
}
|
}
|
|
|
int main() {
|
int main() {
|
moo_t x;
|
moo_t x;
|
foo(x); // { dg-bogus "" "" { xfail *-*-* } } - instantiated from here -
|
foo(x); // { dg-bogus "" "" { xfail *-*-* } } - instantiated from here -
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.