1; Verify that constructors from a .o file which it initially depends on but 2; doesn't ultimately contribute to the final link are not included. 3; 4; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ctor-ctor.s -o %t.ctor.o 5; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ctor-lib.s -o %t.lib.o 6; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ctor-start.s -o %t.start.o 7; RUN: rm -f %t.lib.a 8; RUN: llvm-ar rcs %t.lib.a %t.lib.o %t.ctor.o 9; RUN: wasm-ld %t.start.o %t.lib.a -o %t.wasm 10; RUN: wasm-ld %t.start.o --whole-archive %t.lib.a -o %t2.wasm 11; RUN: obj2yaml %t.wasm | FileCheck %s 12; RUN: obj2yaml %t2.wasm | FileCheck %s -check-prefix=WHOLEARCHIVE 13 14; CHECK-NOT: __wasm_call_ctors 15 16; WHOLEARCHIVE: __wasm_call_ctors 17