Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / clang-call-terminate.uwtable.cpp
blobebf21c635da0f820d22be25505577a7d54432da7
1 // RUN: %clang_cc1 -triple=x86_64-linux-gnu -fexceptions -fcxx-exceptions -emit-llvm -o - %s | \
2 // RUN: FileCheck --check-prefixes=CHECK,NOUNWIND %s
3 // 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 %s
5 // 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 %s
8 void caller(void callback()) noexcept { callback(); }
10 // CHECK: define {{.*}}void @__clang_call_terminate({{[^)]*}}) #[[#ATTRNUM:]]
11 // CHECK: attributes #[[#ATTRNUM]] = {
12 // NOUNWIND-NOT: uwtable
13 // NOUNWIND-SAME: }
14 // SYNCUNWIND-SAME: uwtable(sync)
15 // ASYNCUNWIND-SAME: uwtable{{ }}