1; Check if we handle a variable (here __cxx_global_var_init) in different LTO 2; bitcode modules sharing a comdat. 3 4; RUN: llvm-as %S/Inputs/comdat_ordering1.ll -o %t1.o 5; RUN: llvm-as %S/Inputs/comdat_ordering2.ll -o %t2.o 6; RUN: llvm-ar rcs %t1.a %t1.o 7; RUN: llvm-ar rcs %t2.a %t2.o 8; RUN: wasm-ld %t1.a %t2.a -o %t.wasm --no-entry --export=main --export=__wasm_call_ctors 9; RUN: obj2yaml %t.wasm | FileCheck %s 10 11; CHECK: - Type: CUSTOM 12; CHECK-NEXT: Name: name 13; CHECK-NEXT: FunctionNames: 14; CHECK-NEXT: - Index: 0 15; CHECK-NEXT: Name: __wasm_call_ctors 16; CHECK-NEXT: - Index: 1 17; CHECK-NEXT: Name: __cxx_global_var_init 18 19; CHECK-NOT: Name: __cxx_global_var_init.2 20