1Test that --export will also fetch lazy symbols from archives 2 3RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/start.s -o %t.o 4RUN: llc -filetype=obj %S/Inputs/archive1.ll -o %t.a1.o 5RUN: llc -filetype=obj %S/Inputs/archive2.ll -o %t.a2.o 6RUN: rm -f %t.a 7RUN: llvm-ar rcs %t.a %t.a1.o %t.a2.o 8RUN: wasm-ld --export-dynamic --export=archive2_symbol -o %t.wasm %t.a %t.o 9RUN: obj2yaml %t.wasm | FileCheck %s 10RUN: wasm-ld --export-dynamic -o %t.wasm %t.a %t.o 11RUN: obj2yaml %t.wasm | FileCheck %s -check-prefix=NOEXPORT 12 13CHECK: Exports: 14CHECK-NEXT: - Name: memory 15CHECK-NEXT: Kind: MEMORY 16CHECK-NEXT: Index: 0 17CHECK-NEXT: - Name: foo 18CHECK-NEXT: Kind: FUNCTION 19CHECK-NEXT: Index: 1 20CHECK-NEXT: - Name: bar 21CHECK-NEXT: Kind: FUNCTION 22CHECK-NEXT: Index: 2 23CHECK-NEXT: - Name: archive2_symbol 24CHECK-NEXT: Kind: FUNCTION 25CHECK-NEXT: Index: 3 26CHECK-NEXT: - Name: _start 27CHECK-NEXT: Kind: FUNCTION 28CHECK-NEXT: Index: 0 29CHECK-NEXT: - Type: CODE 30 31NOEXPORT: Exports: 32NOEXPORT-NEXT: - Name: memory 33NOEXPORT-NEXT: Kind: MEMORY 34NOEXPORT-NEXT: Index: 0 35NOEXPORT-NEXT: - Name: _start 36NOEXPORT-NEXT: Kind: FUNCTION 37NOEXPORT-NEXT: Index: 0 38NOEXPORT-NEXT: - Type: CODE 39