URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc/] [execute/] [exceptions/] [trivial.m] - Rev 702
Compare with Previous | Blame | View Log
#include <stdlib.h> #include "../../../objc-obj-c++-shared/TestsuiteObject.m" /* do nothing except prove we can compile and link code calling the ecceptions mechanism */ int main(void) { @try { int a = 1 ; @throw [TestsuiteObject new]; } @catch (TestsuiteObject *obj) { return 0; } abort(); }