Debian Codegraph @

clang/test/CodeGen/WebAssembly/wasm-exception-model-flag-parse-ir-input.ll

raw
1 ; REQUIRES: webassembly-registered-target
2
3 ; Check all the options parse
4 ; RUN: %clang_cc1 -triple wasm32 -o - -emit-llvm -exception-model=none %s | FileCheck %s
5 ; RUN: %clang_cc1 -triple wasm32 -o - -emit-llvm -exception-model=wasm -mllvm -wasm-enable-eh %s | FileCheck %s
6
7 ; RUN: not %clang_cc1 -triple wasm32 -o - -emit-llvm -exception-model=invalid %s 2>&1 | FileCheck -check-prefix=ERR %s
8 ; RUN: not %clang_cc1 -triple wasm32 -o - -emit-llvm -exception-model=dwarf %s 2>&1 | FileCheck -check-prefix=ERR-BE %s
9 ; RUN: not %clang_cc1 -triple wasm32 -o - -emit-llvm -exception-model=sjlj %s 2>&1 | FileCheck -check-prefix=ERR-BE %s
10
11 ; CHECK-LABEL: define void @test(
12
13 ; ERR: error: invalid value 'invalid' in '-exception-model=invalid'
14 ; ERR-BE: fatal error: error in backend: -exception-model should be either 'none' or 'wasm'
15 define void @test() {
16 ret void
17 }