brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 93fccd3 Raw
39 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %s -o %t12# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/allow-multiple-definition.s -o %t23# RUN: not wasm-ld %t1 %t2 -o /dev/null4# RUN: not wasm-ld --allow-multiple-definition --no-allow-multiple-definition %t1 %t2 -o /dev/null5# RUN: wasm-ld --allow-multiple-definition --fatal-warnings %t1 %t2 -o %t36# RUN: wasm-ld --allow-multiple-definition --fatal-warnings %t2 %t1 -o %t47# RUN: llvm-objdump --no-print-imm-hex -d %t3 | FileCheck %s8# RUN: llvm-objdump --no-print-imm-hex -d %t4 | FileCheck --check-prefix=REVERT %s9 10# RUN: wasm-ld --noinhibit-exec %t2 %t1 -o /dev/null 2>&1 | FileCheck %s --check-prefix=WARN11# WARN: warning: duplicate symbol: foo12 13# RUN: wasm-ld -z muldefs --fatal-warnings  %t1 %t2 -o %t314# RUN: wasm-ld -z muldefs --fatal-warnings  %t2 %t1 -o %t415# RUN: llvm-objdump --no-print-imm-hex -d %t3 | FileCheck %s16# RUN: llvm-objdump --no-print-imm-hex -d %t4 | FileCheck --check-prefix=REVERT %s17 18# CHECK:  i32.const 019# REVERT:  i32.const 120 21# inputs contain different constants for function foo return.22# Tests below checks that order of files in command line23# affects on what symbol will be used.24# If flag allow-multiple-definition is enabled the first25# meet symbol should be used.26 27  .hidden foo28  .globl  foo29foo:30  .functype foo () -> (i32)31  i32.const 032  end_function33 34  .globl _start35_start:36  .functype  _start () -> (i32)37  call foo38  end_function39