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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc/] [execute/] [exceptions/] [trivial.m] - Blame information for rev 702

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 702 jeremybenn
#include <stdlib.h>
2
#include "../../../objc-obj-c++-shared/TestsuiteObject.m"
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 [TestsuiteObject new];
12
    }
13
    @catch (TestsuiteObject *obj) {
14
        return 0;
15
    }
16
    abort();
17
}

powered by: WebSVN 2.1.0

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