xref: /llvm-project/lld/test/ELF/lto/asmundef.ll (revision 7b1d793713cf9ed9ab719f33b332f9c66a1fc5cc)
1; REQUIRES: x86
2; RUN: llvm-as %s -o %t.o
3; RUN: llvm-as %S/Inputs/asmundef.ll -o %t2.o
4; RUN: ld.lld %t.o %t2.o -o %t -save-temps
5; RUN: llvm-dis %t.0.4.opt.bc -o - | FileCheck %s
6
7target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
8target triple = "x86_64-unknown-linux-gnu"
9
10module asm ".weak patatino"
11module asm ".equ patatino, foo"
12
13declare void @patatino()
14
15define void @foo() {
16  ret void
17}
18
19define void @_start() {
20  call void @patatino()
21  ret void
22}
23
24; CHECK: define dso_local void @foo
25
26