brintos

brintos / llvm-project-archived public Read only

0
0
Text · 473 B · 4e26512 Raw
21 lines · plain
1; REQUIRES: x862; This test checks that symbols which are specified in "-u" switches3; are kept over LTO if we link an executable.4; RUN: llvm-as %s -o %t.o5; RUN: ld.lld %t.o -o %tout -u foo6; RUN: llvm-nm %tout | FileCheck %s7 8; CHECK: T foo9 10target triple = "x86_64-unknown-linux-gnu"11target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"12 13define void @foo() {14  ret void15}16 17define void @_start() {18  call void @foo()19  ret void20}21