| 1 |
// RUN: %clang -### -target wasm32-unknown-unknown -fwasm-exceptions -c -S -o - %S/Inputs/file.ll 2>&1 | FileCheck %s |
| 2 |
// RUN: %clang -### -target wasm32-unknown-unknown -Xclang -exception-model=wasm -c -S -o - %S/Inputs/file.ll 2>&1 | FileCheck %s |
| 3 |
// RUN: %clang -### -target wasm32-unknown-unknown -Xclang -exception-model=dwarf -c -S -o - %S/Inputs/file.ll 2>&1 | FileCheck -check-prefix=DWARF %s |
| 4 |
// RUN: %clang -### -target wasm32-unknown-unknown -Xclang -exception-model=sjlj -c -S -o - %S/Inputs/file.ll 2>&1 | FileCheck -check-prefix=SJLJ %s |
| 5 |
// RUN: %clang -### -target wasm32-unknown-unknown -Xclang -exception-model=wineh -c -S -o - %S/Inputs/file.ll 2>&1 | FileCheck -check-prefix=WINEH %s |
| 6 |
// RUN: %clang -### -target wasm32-unknown-unknown -Xclang -exception-model=arst -c -S -o - %S/Inputs/file.ll 2>&1 | FileCheck -check-prefix=INVALID %s |
| 7 |
|
| 8 |
// Check that -fwasm-exceptions propagates -exception-model to cc1 |
| 9 |
|
| 10 |
// CHECK: "-exception-model=wasm" |
| 11 |
// DWARF: "-exception-model=dwarf" |
| 12 |
// SJLJ: "-exception-model=sjlj" |
| 13 |
// WINEH: "-exception-model=wineh" |
| 14 |
// INVALID: "-exception-model=arst" |