2014-08-22 04:28:55 +08:00
|
|
|
; RUN: llvm-as %s -o %t.o
|
|
|
|
; RUN: llvm-as %p/Inputs/alias-1.ll -o %t2.o
|
2015-02-14 17:43:57 +08:00
|
|
|
; RUN: %gold -shared -o %t3.o -plugin %llvmshlibdir/LLVMgold.so %t2.o %t.o \
|
2014-08-22 04:28:55 +08:00
|
|
|
; RUN: -plugin-opt=emit-llvm
|
2014-09-11 03:39:41 +08:00
|
|
|
; RUN: llvm-dis < %t3.o -o - | FileCheck %s
|
2014-08-22 04:28:55 +08:00
|
|
|
|
2014-09-11 03:39:41 +08:00
|
|
|
; CHECK-NOT: alias
|
2014-08-22 04:28:55 +08:00
|
|
|
; CHECK: @a = global i32 42
|
2014-09-11 03:39:41 +08:00
|
|
|
; CHECK-NEXT: @b = global i32 1
|
|
|
|
; CHECK-NOT: alias
|
2014-08-22 04:28:55 +08:00
|
|
|
|
|
|
|
@a = weak alias i32* @b
|
|
|
|
@b = global i32 1
|