brintos

brintos / llvm-project-archived public Read only

0
0
Text · 786 B · 12a0efc Raw
20 lines · plain
1; Check if we handle a variable (here __cxx_global_var_init) in different LTO2; bitcode modules sharing a comdat.3 4; RUN: llvm-as %S/Inputs/comdat_ordering1.ll -o %t1.o5; RUN: llvm-as %S/Inputs/comdat_ordering2.ll -o %t2.o6; RUN: llvm-ar rcs %t1.a %t1.o7; RUN: llvm-ar rcs %t2.a %t2.o8; RUN: wasm-ld %t1.a %t2.a -o %t.wasm --no-entry --export=main --export=__wasm_call_ctors9; RUN: obj2yaml %t.wasm | FileCheck %s10 11; CHECK:       - Type:            CUSTOM12; CHECK-NEXT:    Name:            name13; CHECK-NEXT:    FunctionNames:14; CHECK-NEXT:      - Index:           015; CHECK-NEXT:        Name:            __wasm_call_ctors16; CHECK-NEXT:      - Index:           117; CHECK-NEXT:        Name:            __cxx_global_var_init18 19; CHECK-NOT:         Name:            __cxx_global_var_init.220