brintos

brintos / llvm-project-archived public Read only

0
0
Text · 746 B · 7108b30 Raw
24 lines · plain
1; RUN: llvm-as %s -o %t.o2 3;; --noinhibit-exec allows undefined foo.4; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \5; RUN:    --export-dynamic --noinhibit-exec \6; RUN:    --plugin-opt=save-temps %t.o -o %t-out7; RUN: llvm-readobj -r %t-out.lto.o | FileCheck %s --check-prefix=STATIC8 9; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \10; RUN:    -r \11; RUN:    --plugin-opt=save-temps %t.o -o %t-out12; RUN: llvm-readobj -r %t-out.lto.o | FileCheck %s --check-prefix=STATIC13 14; STATIC: R_X86_64_PC32 foo15 16target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"17target triple = "x86_64-unknown-linux-gnu"18 19@foo = external dso_local global i3220define i32 @main() {21  %t = load i32, ptr @foo22  ret i32 %t23}24