1; RUN: llc -relocation-model=pic -filetype=obj %s -o %t.o
2
3; By default all `default` symbols should be exported
4; RUN: wasm-ld -shared -o %t.wasm %t.o
5; RUN: obj2yaml %t.wasm | FileCheck %s -check-prefix=DEFAULT
6; DEFAULT: foo
7
8; Verify that `--no-export-dynamic` works with `-shared`
9; RUN: wasm-ld -shared --no-export-dynamic -o %t2.wasm %t.o
10; RUN: obj2yaml %t2.wasm | FileCheck %s -check-prefix=NO-EXPORT
11; NO-EXPORT-NOT: foo
12
13target triple = "wasm32-unknown-emscripten"
14
15define default i32 @foo() {
16entry:
17  ret i32 0
18}
19