Make this test not depend on how the variable is named.
[oota-llvm.git] / test / FrontendObjC / 2007-09-25-EH.m
1 // RUN: %llvmgcc -S -w -m64 -mmacosx-version-min=10.5 %s -o /dev/null
2 // XFAIL: *
3 // XTARGET: darwin
4 @class NSDictionary, DSoBuffer, DSoDirectory, NSMutableArray;
5 @interface NSException {}
6 @end
7 @interface DSoNode {
8   DSoDirectory  *mDirectory;
9 }
10 @end
11 @implementation DSoNode
12 - (void) _findRecordsOfTypes {
13   DSoBuffer      *dbData;
14   void           *recInfo;
15   NSMutableArray *results;
16   @try {
17     dsGetRecordEntry([dbData dsDataBuffer], (void**)&recInfo);
18     @try {
19         [results addObject:37];
20     } @finally {
21       dsDeallocRecordEntry([mDirectory dsDirRef], recInfo);
22     }
23   } @catch(NSException * exception) {
24   }
25 }
26
27