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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Test that we don't allow incomplete types in an exception-specification
2
// for a definition, or at a call site.
3
 
4
// { dg-options "-fpermissive -w" }
5
 
6
struct A;                       // { dg-error "" }
7
 
8
struct B
9
{
10
  void f () throw (A);
11
};
12
 
13
void B::f () throw (A) {}       // { dg-error "A" }
14
 
15
int main ()
16
{
17
  B b;
18
  b.f();                        // { dg-error "A" }
19
}

powered by: WebSVN 2.1.0

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