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] - 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();
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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