3 ; RUN: split-file %s %t.dir
4 ; RUN: llvm-as %t.dir/other.ll -o %t.other.bc
5 ; RUN: llc -filetype=obj -o %t.main.obj %t.dir/main.ll
7 ; RUN: lld-link -out:%t.exe -subsystem:console %t.other.bc %t.main.obj
10 target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
11 target triple = "x86_64-unknown-windows-msvc19.14.0"
13 $comdatData = comdat samesize
15 @comdatData = weak_odr dso_local global i32 42, comdat
17 define dso_local void @mainCRTStartup() {
19 tail call void @other()
23 declare dso_local void @other()
26 target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
27 target triple = "x86_64-unknown-windows-msvc19.14.0"
29 $comdatData = comdat samesize
31 @comdatData = weak_odr dso_local global i32 42, comdat
33 define dso_local void @other() {