aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendObjC/2007-09-25-EH.m
blob: 5fa9cbb85d82dce59dd928f87e06cbe7de5c322a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// RUN: %llvmgcc -c -w -m64 -mmacosx-version-min=10.5 %s -o /dev/null
// XFAIL: *
// XTARGET: darwin
@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) {
  }
}