1 ; RUN: llvm-as -o %t.o %s
2 ; RUN: llvm-lto2 run -o %t2.o %t.o -r=%t.o,_start,plx -r=%t.o,foobar,x
3 ; RUN: llvm-readelf --symbols %t2.o.0 | FileCheck %s
5 ; We used to fail the verifier by clearing dso_local from foobar
7 ; CHECK: 0000000000000000 0 NOTYPE GLOBAL HIDDEN UND foobar
9 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
10 target triple = "x86_64-unknown-linux-gnu"
12 @foobar = external hidden global i32
13 define i32* @_start() {