OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [eh/] [spec5.C] - Diff between revs 149 and 154

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();
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.