|
202 | 202 | // RUN: | FileCheck -check-prefix=WASM_SJLJ_NO_REFERENCE_TYPES %s
|
203 | 203 | // WASM_SJLJ_NO_REFERENCE_TYPES: invalid argument '-wasm-enable-sjlj' not allowed with '-mno-reference-types'
|
204 | 204 |
|
| 205 | +// '-mllvm -wasm-use-legacy-eh' not allowed with |
| 206 | +// '-mllvm -enable-emscripten-cxx-exceptions' |
| 207 | +// RUN: not %clang -### --target=wasm32-unknown-unknown \ |
| 208 | +// RUN: --sysroot=/foo %s -mllvm -wasm-use-legacy-eh \ |
| 209 | +// RUN: -mllvm -enable-emscripten-cxx-exceptions 2>&1 \ |
| 210 | +// RUN: | FileCheck -check-prefix=WASM_LEGACY_EH_EMSCRIPTEN_EH %s |
| 211 | +// WASM_LEGACY_EH_EMSCRIPTEN_EH: invalid argument '-wasm-use-legacy-eh' not allowed with '-enable-emscripten-cxx-exceptions' |
| 212 | + |
| 213 | +// '-mllvm -wasm-use-legacy-eh' not allowed with '-mllvm -enable-emscripten-sjlj' |
| 214 | +// RUN: not %clang -### --target=wasm32-unknown-unknown \ |
| 215 | +// RUN: --sysroot=/foo %s -mllvm -wasm-use-legacy-eh \ |
| 216 | +// RUN: -mllvm -enable-emscripten-sjlj 2>&1 \ |
| 217 | +// RUN: | FileCheck -check-prefix=WASM_LEGACY_EH_EMSCRIPTEN_SJLJ %s |
| 218 | +// WASM_LEGACY_EH_EMSCRIPTEN_SJLJ: invalid argument '-wasm-use-legacy-eh' not allowed with '-enable-emscripten-sjlj' |
| 219 | + |
| 220 | +// '-mllvm -wasm-use-legacy-eh' not allowed with '-mno-exception-handling' |
| 221 | +// RUN: not %clang -### --target=wasm32-unknown-unknown \ |
| 222 | +// RUN: --sysroot=/foo %s -mllvm -wasm-use-legacy-eh \ |
| 223 | +// RUN: -mno-exception-handling 2>&1 \ |
| 224 | +// RUN: | FileCheck -check-prefix=WASM_LEGACY_EH_NO_EH %s |
| 225 | +// WASM_LEGACY_EH_NO_EH: invalid argument '-wasm-use-legacy-eh' not allowed with '-mno-exception-handling' |
| 226 | + |
205 | 227 | // RUN: %clang -### %s -fsanitize=address --target=wasm32-unknown-emscripten 2>&1 | FileCheck -check-prefix=CHECK-ASAN-EMSCRIPTEN %s
|
206 | 228 | // CHECK-ASAN-EMSCRIPTEN: "-fsanitize=address"
|
207 | 229 | // CHECK-ASAN-EMSCRIPTEN: "-fsanitize-address-globals-dead-stripping"
|
|
0 commit comments