While searching for appropriate place for temporaries, do not over-incerement iterator.
[oota-llvm.git] / test / FrontendObjC / 2007-09-25-EH.m
1 // RUN: %llvmgcc -c -w -m64 %s -o /dev/null
2
3 @class NSDictionary, DSoBuffer, DSoDirectory, NSMutableArray;
4 @interface NSException {}
5 @end
6 @interface DSoNode {
7   DSoDirectory  *mDirectory;
8 }
9 @end
10 @implementation DSoNode
11 - (void) _findRecordsOfTypes {
12   DSoBuffer      *dbData;
13   void           *recInfo;
14   NSMutableArray *results;
15   @try {
16     dsGetRecordEntry([dbData dsDataBuffer], (void**)&recInfo);
17     @try {
18         [results addObject:37];
19     } @finally {
20       dsDeallocRecordEntry([mDirectory dsDirRef], recInfo);
21     }
22   } @catch(NSException * exception) {
23   }
24 }
25
26