repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Implement C _FloatN, _FloatNx types.
[official-gcc.git]
/
gcc
/
testsuite
/
objc
/
execute
/
exceptions
/
trivial.m
blob
d218183f3418e6e4f9544ae123f8a41771191b0d
1
#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
}