diff options
Diffstat (limited to 'test/tools/gold/X86/unnamed-addr.ll')
-rw-r--r-- | test/tools/gold/X86/unnamed-addr.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/tools/gold/X86/unnamed-addr.ll b/test/tools/gold/X86/unnamed-addr.ll new file mode 100644 index 000000000000..290f73d85484 --- /dev/null +++ b/test/tools/gold/X86/unnamed-addr.ll @@ -0,0 +1,14 @@ +; RUN: llvm-as %s -o %t.o + +; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \ +; RUN: --plugin-opt=emit-llvm \ +; RUN: -shared %t.o -o %t2.o +; RUN: llvm-dis %t2.o -o - | FileCheck %s + +@a = internal unnamed_addr constant i8 42 + +define i8* @f() { + ret i8* @a +} + +; CHECK: @a = internal unnamed_addr constant i8 42 |