diff options
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/CodeGen/exceptions.c | 9 | ||||
-rw-r--r-- | clang/test/CodeGen/functions.c | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/clang/test/CodeGen/exceptions.c b/clang/test/CodeGen/exceptions.c index 20eb706a03b..311bc84e6a1 100644 --- a/clang/test/CodeGen/exceptions.c +++ b/clang/test/CodeGen/exceptions.c @@ -19,3 +19,12 @@ void test1() { // CHECK-ARM: landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gcc_personality_sj0 to i8*) // CHECK-ARM-NEXT: cleanup } + +void test2_helper(); +void test2() { + __block int x = 10; + test2_helper(5, 6, 7); +} +void test2_helper(int x, int y) { +} +// CHECK: invoke void @test2_helper(i32 5, i32 6) diff --git a/clang/test/CodeGen/functions.c b/clang/test/CodeGen/functions.c index 28e4bd0c829..8241a3d1674 100644 --- a/clang/test/CodeGen/functions.c +++ b/clang/test/CodeGen/functions.c @@ -24,7 +24,7 @@ void f0() {} void f1(); void f2(void) { -// CHECK: call void bitcast (void ()* @f1 to void (i32, i32, i32)*)(i32 1, i32 2, i32 3) +// CHECK: call void @f1() f1(1, 2, 3); } // CHECK: define void @f1() |