[llvm-commits] CVS: llvm/test/FrontendObjC/2007-04-03-ObjcEH.m

Chris Lattner sabre at nondot.org
Tue Apr 3 14:47:53 PDT 2007



Changes in directory llvm/test/FrontendObjC:

2007-04-03-ObjcEH.m added (r1.1)
---
Log message:

testcase for recent bugfix


---
Diffs of the changes:  (+29 -0)

 2007-04-03-ObjcEH.m |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+)


Index: llvm/test/FrontendObjC/2007-04-03-ObjcEH.m
diff -c /dev/null llvm/test/FrontendObjC/2007-04-03-ObjcEH.m:1.1
*** /dev/null	Tue Apr  3 16:47:46 2007
--- llvm/test/FrontendObjC/2007-04-03-ObjcEH.m	Tue Apr  3 16:47:36 2007
***************
*** 0 ****
--- 1,29 ----
+ // RUN: %llvmgcc -c %s -o /dev/null
+ 
+ @interface B 
+ -(int)bar;
+ @end
+ 
+ @interface A
+ -(void) Foo:(int) state;
+ @end
+ 
+ @implementation A 
+ - (void) Foo:(int) state {
+ 
+         int wasResponded = 0;
+         @try {
+         if (state) {
+            B * b = 0;
+            @try { }
+            @finally {
+              wasResponded = ![b bar];
+            }
+         }
+         }
+         @finally {
+         }
+ }
+ @end
+ 
+ 






More information about the llvm-commits mailing list