[llvm-commits] [llvm] r42406 - /llvm/trunk/test/FrontendObjC/2007-09-25-EH.m
Devang Patel
dpatel at apple.com
Thu Sep 27 11:02:47 PDT 2007
Author: dpatel
Date: Thu Sep 27 13:02:47 2007
New Revision: 42406
URL: http://llvm.org/viewvc/llvm-project?rev=42406&view=rev
Log:
While searching for appropriate place for temporaries, do not over-incerement iterator.
Added:
llvm/trunk/test/FrontendObjC/2007-09-25-EH.m
Added: llvm/trunk/test/FrontendObjC/2007-09-25-EH.m
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendObjC/2007-09-25-EH.m?rev=42406&view=auto
==============================================================================
--- llvm/trunk/test/FrontendObjC/2007-09-25-EH.m (added)
+++ llvm/trunk/test/FrontendObjC/2007-09-25-EH.m Thu Sep 27 13:02:47 2007
@@ -0,0 +1,26 @@
+// RUN: %llvmgcc -c -w -m64 %s -o /dev/null
+
+ at class NSDictionary, DSoBuffer, DSoDirectory, NSMutableArray;
+ at interface NSException {}
+ at end
+ at interface DSoNode {
+ DSoDirectory *mDirectory;
+}
+ at end
+ at 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) {
+ }
+}
+
+
More information about the llvm-commits
mailing list