| 1 |
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s -check-prefix=DISABLED |
| 2 |
// RUN: %clang_cc1 -fwinx64-eh-unwindv2=disabled -emit-llvm %s -o - | FileCheck %s -check-prefix=DISABLED |
| 3 |
// RUN: %clang_cc1 -fwinx64-eh-unwindv2=best-effort -emit-llvm %s -o - | FileCheck %s -check-prefix=BESTEFFORT |
| 4 |
// RUN: %clang_cc1 -fwinx64-eh-unwindv2=required -emit-llvm %s -o - | FileCheck %s -check-prefix=REQUIRED |
| 5 |
// RUN: %clang -fwinx64-eh-unwindv2=best-effort -S -emit-llvm %s -o - | FileCheck %s -check-prefix=BESTEFFORT |
| 6 |
|
| 7 |
void f(void) {} |
| 8 |
|
| 9 |
// BESTEFFORT: !"winx64-eh-unwindv2", i32 1} |
| 10 |
// REQUIRED: !"winx64-eh-unwindv2", i32 2} |
| 11 |
// DISABLED-NOT: "winx64-eh-unwindv2" |