URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// Test for extension to allow incomplete types in an
|
// Test for extension to allow incomplete types in an
|
// exception-specification for a declaration.
|
// exception-specification for a declaration.
|
|
|
// { dg-do run }
|
// { dg-do run }
|
// { dg-options "-fpermissive -w" }
|
// { dg-options "-fpermissive -w" }
|
|
|
struct A;
|
struct A;
|
|
|
struct B
|
struct B
|
{
|
{
|
void f () throw (A);
|
void f () throw (A);
|
};
|
};
|
|
|
struct A {};
|
struct A {};
|
|
|
void B::f () throw (A) {}
|
void B::f () throw (A) {}
|
|
|
int main ()
|
int main ()
|
{
|
{
|
B b;
|
B b;
|
b.f();
|
b.f();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.