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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [eh/] [spec5.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Test for extension to allow incomplete types in an
2
// exception-specification for a declaration.
3
 
4
// { dg-do run }
5
// { dg-options "-fpermissive -w" }
6
 
7
struct A;
8
 
9
struct B
10
{
11
  void f () throw (A);
12
};
13
 
14
struct A {};
15
 
16
void B::f () throw (A) {}
17
 
18
int main ()
19
{
20
  B b;
21
  b.f();
22
}

powered by: WebSVN 2.1.0

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