; Like ctor-gc.test, but main object calls a function from its constructor, ; which shouldn't matter; `ctor` shouldn't be pulled in. ; ; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ctor-ctor.s -o %t.ctor.o ; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ctor-lib.s -o %t.lib.o ; RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ctor-setup.s -o %t.setup.o ; RUN: rm -f %t.lib.a ; RUN: llvm-ar rcs %t.lib.a %t.lib.o %t.ctor.o ; RUN: wasm-ld %t.setup.o %t.lib.a -o %t.wasm ; RUN: obj2yaml %t.wasm | FileCheck %s ; CHECK-NOT: Name: test_ctor