aboutsummaryrefslogtreecommitdiff
path: root/test/FrontendObjC
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-09-27 18:02:47 +0000
committerDevang Patel <dpatel@apple.com>2007-09-27 18:02:47 +0000
commitcdc52b0dd7e8b9479d3b8b09a43737473a296363 (patch)
tree207014ad37164150c1d0711f81ceed5f3302024d /test/FrontendObjC
parent5d02a0cf9b4aec8c1659c2d729ed18ea4dd8ee77 (diff)
While searching for appropriate place for temporaries, do not over-incerement iterator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42406 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendObjC')
-rw-r--r--test/FrontendObjC/2007-09-25-EH.m26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/FrontendObjC/2007-09-25-EH.m b/test/FrontendObjC/2007-09-25-EH.m
new file mode 100644
index 0000000000..1158327011
--- /dev/null
+++ b/test/FrontendObjC/2007-09-25-EH.m
@@ -0,0 +1,26 @@
+// RUN: %llvmgcc -c -w -m64 %s -o /dev/null
+
+@class NSDictionary, DSoBuffer, DSoDirectory, NSMutableArray;
+@interface NSException {}
+@end
+@interface DSoNode {
+ DSoDirectory *mDirectory;
+}
+@end
+@implementation DSoNode
+- (void) _findRecordsOfTypes {
+ DSoBuffer *dbData;
+ void *recInfo;
+ NSMutableArray *results;
+ @try {
+ dsGetRecordEntry([dbData dsDataBuffer], (void**)&recInfo);
+ @try {
+ [results addObject:37];
+ } @finally {
+ dsDeallocRecordEntry([mDirectory dsDirRef], recInfo);
+ }
+ } @catch(NSException * exception) {
+ }
+}
+
+