llvm/test/Linker/type-unique-alias.ll
Rafael Espindola 453ce91dbc Link the type of aliases.
They are not more or less "well typed" than GlobalVariables.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222725 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-25 04:43:59 +00:00

11 lines
256 B
LLVM

; RUN: llvm-link -S %s %p/Inputs/type-unique-alias.ll | FileCheck %s
%t = type { i8 }
@g = global %t zeroinitializer
@a = weak alias %t* @g
; CHECK: @g = global %t zeroinitializer
; CHECK: @g2 = global %t zeroinitializer
; CHECK: @a = weak alias %t* @g