2017-07-19 02:40:50 +08:00
|
|
|
; REQUIRES: x86
|
2016-04-21 12:50:08 +08:00
|
|
|
; RUN: llvm-as %s -o %t.o
|
2018-05-31 01:57:08 +08:00
|
|
|
; RUN: ld.lld %t.o -o %t.so -save-temps -shared
|
2016-09-29 08:40:08 +08:00
|
|
|
; RUN: llvm-dis %t.so.0.4.opt.bc -o - | FileCheck %s
|
2016-04-21 12:50:08 +08:00
|
|
|
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
|
|
|
|
@a = internal unnamed_addr constant i8 42
|
|
|
|
|
|
|
|
define i8* @f() {
|
|
|
|
ret i8* @a
|
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK: @a = internal unnamed_addr constant i8 42
|