brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 8bed63c Raw
34 lines · plain
1// Based on lld/test/ELF/start-lib.s2 3// RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %s -o %t1.o4// RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown \5// RUN:   %p/Inputs/start-lib1.s -o %t2.o6// RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown \7// RUN:   %p/Inputs/start-lib2.s -o %t3.o8 9// RUN: wasm-ld --no-gc-sections -o %t3 %t1.o %t2.o %t3.o10// RUN: obj2yaml %t3 | FileCheck --check-prefix=TEST1 %s11// TEST1: Name: foo12// TEST1: Name: bar13 14// RUN: wasm-ld --no-gc-sections -o %t3 %t1.o -u bar --start-lib %t2.o %t3.o15// RUN: obj2yaml %t3 | FileCheck --check-prefix=TEST2 %s16// TEST2-NOT: Name: foo17// TEST2: Name: bar18 19// RUN: wasm-ld --no-gc-sections -o %t3 %t1.o --start-lib %t2.o %t3.o20// RUN: obj2yaml %t3 | FileCheck --check-prefix=TEST3 %s21// TEST3-NOT: Name: foo22// TEST3-NOT: Name: bar23 24// RUN: not wasm-ld %t1.o --start-lib --start-lib 2>&1 | FileCheck -check-prefix=NESTED-LIB %s25// NESTED-LIB: nested --start-lib26 27// RUN: not wasm-ld --end-lib 2>&1 | FileCheck -check-prefix=END %s28// END: stray --end-lib29 30.globl _start31_start:32  .functype _start () -> ()33  end_function34