1 ; Like ctor-gc-setup.test, but it calls a different function, so it does pull
2 ; in the object containing `ctor`, so `ctor` is linked in.
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-setup-call-def.s -o %t.setup-call-def.o
8 ; RUN: llvm-ar rcs %t.lib.a %t.lib.o %t.ctor.o
9 ; RUN: wasm-ld %t.setup-call-def.o %t.lib.a -o %t.wasm
10 ; RUN: obj2yaml %t.wasm | FileCheck %s
12 ; CHECK: Name: test_ctor