The backend now can generate working unwind information for this target. Improve the existing windows-exceptions.cpp testcase to check for the state of unwind tables on all MSVC architectures. Differential Revision: https://reviews.llvm.org/D126862
17 lines
1.1 KiB
C++
17 lines
1.1 KiB
C++
// RUN: %clang -target i686-windows-msvc -c %s -### 2>&1 | FileCheck -check-prefix=MSVC -check-prefix=MSVC-NOSEH %s
|
|
// RUN: %clang -target x86_64-windows-msvc -c %s -### 2>&1 | FileCheck -check-prefix=MSVC -check-prefix=MSVC-SEH %s
|
|
// RUN: %clang -target armv7-windows-msvc -c %s -### 2>&1 | FileCheck -check-prefix=MSVC -check-prefix=MSVC-SEH %s
|
|
// RUN: %clang -target aarch64-windows-msvc -c %s -### 2>&1 | FileCheck -check-prefix=MSVC -check-prefix=MSVC-SEH %s
|
|
// RUN: %clang -target i686-windows-gnu -c %s -### 2>&1 | FileCheck -check-prefix=MINGW-DWARF %s
|
|
// RUN: %clang -target x86_64-windows-gnu -c %s -### 2>&1 | FileCheck -check-prefix=MINGW-SEH %s
|
|
// RUN: %clang -target aarch64-windows-gnu -fdwarf-exceptions -c %s -### 2>&1 | FileCheck -check-prefix=MINGW-DWARF %s
|
|
// RUN: %clang -target aarch64-windows-gnu -c %s -### 2>&1 | FileCheck -check-prefix=MINGW-SEH %s
|
|
|
|
MSVC-NOT: -exception-model=dwarf
|
|
MSVC-NOT: -exception-model=seh
|
|
MSVC-NOSEH-NOT: -funwind-tables=2
|
|
MSVC-SEH: -funwind-tables=2
|
|
MINGW-DWARF: -exception-model=dwarf
|
|
MINGW-SEH: -funwind-tables=2
|
|
MINGW-SEH: -exception-model=seh
|