19 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s2 3# By default all `default` symbols should be exported4# RUN: wasm-ld -shared --experimental-pic -o %t.wasm %t.o5# RUN: obj2yaml %t.wasm | FileCheck %s -check-prefix=DEFAULT6# DEFAULT: foo7 8# Verify that `--no-export-dynamic` works with `-shared`9# RUN: wasm-ld -shared --experimental-pic --no-export-dynamic -o %t2.wasm %t.o10# RUN: obj2yaml %t2.wasm | FileCheck %s -check-prefix=NO-EXPORT11# NO-EXPORT-NOT: foo12 13.globl foo14 15foo:16 .functype foo () -> (i32)17 i32.const 018 end_function19