YouCompleteMe/cpp/llvm/tools/clang/test/CodeGenObjC/blocks-4.m
Strahinja Val Markovic 1f51a89d39 Adding more llvm/clang files
These were ignored by git accidentally. We want ALL OF THEM since they all came
in the llvm/clang source distribution.
2012-07-05 17:55:45 -07:00

22 lines
425 B
Objective-C

// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-fragile-abi -emit-llvm -fobjc-exceptions -fblocks -o %t %s
// rdar://7590273
void EXIT(id e);
@interface NSBlockOperation {
}
+(id)blockOperationWithBlock:(void (^)(void))block ;
@end
void FUNC() {
[NSBlockOperation blockOperationWithBlock:^{
@try {
}
@catch (id exception) {
EXIT(exception);
}
}];
}