zig/deps/lld/test/ELF/lto/keep-undefined.ll

21 lines
440 B
LLVM
Raw Normal View History

2018-01-17 14:29:21 -08:00
; REQUIRES: x86
; This test checks that symbols which are specified in "-u" switches
; are kept over LTO if we link an executable.
; RUN: llvm-as %s -o %t.o
2018-08-04 14:47:16 -07:00
; RUN: ld.lld %t.o -o %tout -u foo
2018-01-17 14:29:21 -08:00
; RUN: llvm-nm %tout | FileCheck %s
; CHECK: T foo
target triple = "x86_64-unknown-linux-gnu"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
define void @foo() {
ret void
}
define void @_start() {
call void @foo()
ret void
}