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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [eh/] [spec6.C] - Blame information for rev 307

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

Line No. Rev Author Line
1 301 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.