diff options
Diffstat (limited to 'test/CodeGenObjC/gnu-exceptions.m')
-rw-r--r-- | test/CodeGenObjC/gnu-exceptions.m | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/CodeGenObjC/gnu-exceptions.m b/test/CodeGenObjC/gnu-exceptions.m index 190a2b8d4e..6790a29937 100644 --- a/test/CodeGenObjC/gnu-exceptions.m +++ b/test/CodeGenObjC/gnu-exceptions.m @@ -10,16 +10,20 @@ void test0() { @try { // CHECK: invoke void @opaque() opaque(); + + // CHECK: call void @log(i32 1) + } @catch (C *c) { // CHECK: call i8* @llvm.eh.exception() // CHECK: call i32 (i8*, i8*, ...)* @llvm.eh.selector({{.*}} @__gnu_objc_personality_v0 // CHECK: br i1 - // CHECK: call void @objc_exception_throw // CHECK: call void @log(i32 0) + + // CHECK: call void @objc_exception_throw + log(0); } - // CHECK: call void @log(i32 1) log(1); } |