Home | History | Annotate | Download | only in X86
      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
      4 
      5 ; We used to fail the verifier by clearing dso_local from foobar
      6 
      7 ; CHECK:  0000000000000000     0 NOTYPE  GLOBAL HIDDEN   UND foobar
      8 
      9 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
     10 target triple = "x86_64-unknown-linux-gnu"
     11 
     12 @foobar = external hidden global i32
     13 define i32* @_start() {
     14   ret i32* @foobar
     15 }
     16