1 // RUN: %clang_cc1 -triple x86_64-unknown-linux -emit-llvm -DUNWIND -fcxx-exceptions -fexceptions -o - %s | FileCheck -check-prefixes CHECK,CHECK-UNWIND %s
2 // RUN: %clang_cc1 -triple x86_64-unknown-linux -emit-llvm -fcxx-exceptions -fexceptions -o - %s | FileCheck -check-prefixes CHECK,CHECK-NO-UNWIND %s
4 extern "C" void printf(const char *fmt
, ...);
17 extern "C" void trap() {
21 // CHECK: define dso_local void @test()
22 extern "C" void test() {
24 // CHECK-UNWIND: invoke void asm sideeffect unwind "call trap"
25 // CHECK-NO-UNWIND: call void asm sideeffect "call trap"
27 asm volatile("call trap" ::
30 asm volatile("call trap" ::