16 lines · plain
1; RUN: llvm-as -o %t.o %s2; RUN: llvm-lto2 run -o %t2.o %t.o -r=%t.o,_start,plx -r=%t.o,foobar,x3; RUN: llvm-readelf --symbols %t2.o.0 | FileCheck %s4 5; We used to fail the verifier by clearing dso_local from foobar6 7; CHECK: 0000000000000000 0 NOTYPE GLOBAL HIDDEN UND foobar8 9target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"10target triple = "x86_64-unknown-linux-gnu"11 12@foobar = external hidden global i3213define ptr @_start() {14 ret ptr @foobar15}16