URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// Test that we don't allow incomplete types in an exception-specification
|
// Test that we don't allow incomplete types in an exception-specification
|
// for a definition, or at a call site.
|
// for a definition, or at a call site.
|
|
|
// { dg-options "-fpermissive -w" }
|
// { dg-options "-fpermissive -w" }
|
|
|
struct A; // { dg-error "" }
|
struct A; // { dg-error "" }
|
|
|
struct B
|
struct B
|
{
|
{
|
void f () throw (A);
|
void f () throw (A);
|
};
|
};
|
|
|
void B::f () throw (A) {} // { dg-error "A" }
|
void B::f () throw (A) {} // { dg-error "A" }
|
|
|
int main ()
|
int main ()
|
{
|
{
|
B b;
|
B b;
|
b.f(); // { dg-error "A" }
|
b.f(); // { dg-error "A" }
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.