brintos

brintos / llvm-project-archived public Read only

0
0
Text · 864 B · 85bfc7f Raw
18 lines · plain
1; REQUIRES: webassembly-registered-target2 3; Check all the options parse4; RUN: %clang_cc1 -triple wasm32 -o - -emit-llvm -exception-model=none %s | FileCheck %s5; RUN: %clang_cc1 -triple wasm32 -o - -emit-llvm -exception-model=wasm -mllvm -wasm-enable-eh %s | FileCheck %s6 7; RUN: not %clang_cc1 -triple wasm32 -o - -emit-llvm -exception-model=invalid %s 2>&1 | FileCheck -check-prefix=ERR %s8; RUN: not %clang_cc1 -triple wasm32 -o - -emit-llvm -exception-model=dwarf %s 2>&1 | FileCheck -check-prefix=ERR-BE %s9; RUN: not %clang_cc1 -triple wasm32 -o - -emit-llvm -exception-model=sjlj %s 2>&1 | FileCheck -check-prefix=ERR-BE %s10 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'15define void @test() {16  ret void17}18