OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc/] [execute/] [exceptions/] [trivial.m] - Blame information for rev 378

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

Line No. Rev Author Line
1 307 jeremybenn
#include <stdlib.h>
2
#import "../../../objc-obj-c++-shared/Object1.h"
3
 
4
/* do nothing except prove we can compile and link code calling the
5
   ecceptions mechanism */
6
 
7
int main(void)
8
{
9
    @try {
10
        int a = 1 ;
11
        @throw [Object new];
12
    }
13
    @catch (Object *obj) {
14
        return 0;
15
    }
16
    abort();
17
}
18
 
19
#import "../../../objc-obj-c++-shared/Object1-implementation.h"

powered by: WebSVN 2.1.0

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