brintos

brintos / llvm-project-archived public Read only

0
0
Text · 783 B · ebf21c6 Raw
16 lines · cpp
1// RUN: %clang_cc1 -triple=x86_64-linux-gnu -fexceptions -fcxx-exceptions -emit-llvm -o - %s | \2// RUN:   FileCheck --check-prefixes=CHECK,NOUNWIND %s3// RUN: %clang_cc1 -triple=x86_64-linux-gnu -fexceptions -fcxx-exceptions -funwind-tables=1 -emit-llvm -o - %s | \4// RUN:   FileCheck --check-prefixes=CHECK,SYNCUNWIND %s5// RUN: %clang_cc1 -triple=x86_64-linux-gnu -fexceptions -fcxx-exceptions -funwind-tables=2 -emit-llvm -o - %s | \6// RUN:   FileCheck --check-prefixes=CHECK,ASYNCUNWIND %s7 8void caller(void callback()) noexcept { callback(); }9 10// CHECK: define {{.*}}void @__clang_call_terminate({{[^)]*}}) #[[#ATTRNUM:]]11// CHECK: attributes #[[#ATTRNUM]] = {12// NOUNWIND-NOT: uwtable13// NOUNWIND-SAME: }14// SYNCUNWIND-SAME: uwtable(sync)15// ASYNCUNWIND-SAME: uwtable{{ }}16