2015-11-27 03:53:12 +08:00
|
|
|
; RUN: llvm-as %s -o %t.o
|
|
|
|
|
2017-12-14 23:59:05 +08:00
|
|
|
; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
|
2015-11-27 03:53:12 +08:00
|
|
|
; RUN: --plugin-opt=emit-llvm \
|
|
|
|
; RUN: -shared %t.o -o %t2.o
|
|
|
|
; RUN: llvm-dis %t2.o -o - | FileCheck %s
|
|
|
|
|
2016-12-15 05:57:04 +08:00
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
|
2015-11-27 03:53:12 +08:00
|
|
|
@a = internal unnamed_addr constant i8 42
|
|
|
|
|
|
|
|
define i8* @f() {
|
|
|
|
ret i8* @a
|
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK: @a = internal unnamed_addr constant i8 42
|