brintos

brintos / llvm-project-archived public Read only

0
0
Text · 399 B · bbfa621 Raw
15 lines · plain
1#import <Foundation/Foundation.h>2 3int main(int argc, char const *argv[]) {4  @try {5    NSException *e = [[NSException alloc] initWithName:@"ThrownException"6                                      reason:@"SomeReason"7                                    userInfo:nil];8    @throw e;9  } @catch (NSException *e) {10    NSLog(@"Caught %@", e);11    @throw; // let the process crash...12  }13  return 0;14}15