diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-03 00:01:43 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-03 00:01:43 +0000 |
commit | 2f764f11f513c7b51c716fffa5d02e5de816836f (patch) | |
tree | 7143680b7384dd27b7975b7936aa50f41f919a5b /test | |
parent | df165014c2defd9120a8f105a855d6a8b35befbe (diff) |
Fix DeclContext of an objective-c @catch variable
declaration. Fixes radar 7590273.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95164 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGenObjC/blocks-4.m | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/CodeGenObjC/blocks-4.m b/test/CodeGenObjC/blocks-4.m new file mode 100644 index 0000000000..d945ed44fa --- /dev/null +++ b/test/CodeGenObjC/blocks-4.m @@ -0,0 +1,21 @@ +// RUN: %clang_cc1 -triple i386-apple-darwin9 -emit-llvm -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); + } + }]; + +} |