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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc.dg/] [try-catch-4.m] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 309 jeremybenn
/* Check that the compiler does not incorrectly complain about
2
   exceptions being caught by previous @catch blocks.  */
3
/* Author: Ziemowit Laski <zlaski@apple.com> */
4
 
5
/* { dg-do compile } */
6
/* { dg-options "-Wall -fobjc-exceptions" } */
7
 
8
@interface Exception
9
@end
10
 
11
@interface FooException : Exception
12
@end
13
 
14
extern void foo();
15
 
16
void test()
17
{
18
    @try {
19
        foo();
20
    }
21
    @catch (FooException* fe) {
22
    }
23
    @catch (Exception* e) {
24
    }
25
}
26
 

powered by: WebSVN 2.1.0

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