brintos

brintos / llvm-project-archived public Read only

0
0
Text · 607 B · d16ccc5 Raw
19 lines · plain
1# Test that when a symbol (foo) is both weakly and strongly referenced2# the strong undefined symbol always generates an error, whichever object3# file is seen first.4 5# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %s -o %t1.o6# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %S/Inputs/weak-undefined.s -o %t2.o7# RUN: not wasm-ld %t1.o %t2.o -o /dev/null 2>&1 | FileCheck %s8# RUN: not wasm-ld %t2.o %t1.o -o /dev/null 2>&1 | FileCheck %s9 10# CHECK: undefined symbol: foo11 12.functype foo () -> ()13 14_start:15    .globl _start16    .functype _start () -> ()17    call foo18    end_function19