brintos

brintos / llvm-project-archived public Read only

0
0
Text · 493 B · 8e924b5 Raw
14 lines · plain
1# REQUIRES: webassembly-registered-target2 3# RUN: %clang -### %s -c -o tmp.o -target wasm32-unknown-unknown -Wa,--no-type-check 2>&1 | FileCheck %s4# CHECK: "-cc1as" {{.*}} "-mno-type-check"5 6# Verify that without -Wa,--no-type-check the assembler will error out7# RUN: not %clang %s -c -o tmp.o -target wasm32-unknown-unknown 2>&1 | FileCheck --check-prefix=ERROR %s8# ERROR: error: type mismatch, expected [i32] but got [i64]9 10foo:11  .functype  foo () -> (i32)12  i64.const 4213  end_function14