; RUN: llvm-as %s -o %t.o

; RUN: not %gold -plugin %llvmshlibdir/LLVMgold.so \
; RUN:    --plugin-opt=emit-llvm \
; RUN:    -shared %t.o -o %t2.o 2>&1 | FileCheck %s

; CHECK: Unable to determine comdat of alias!

@g1 = global i32 1
@g2 = global i32 2

@a = alias inttoptr(i32 sub (i32 ptrtoint (i32, inttoptr(i32 sub (i32 ptrtoint (i32* @g1 to i32),
                             i32 ptrtoint (i32* @g2 to i32)) to i32*)

; RUN: llvm-as %s -o %t.o

; RUN: not %gold -plugin %llvmshlibdir/LLVMgold.so \
; RUN:    --plugin-opt=emit-llvm \
; RUN:    -shared %t.o -o %t2.o 2>&1 | FileCheck %s

; CHECK: Unable to determine comdat of alias!

@g1 = global i32 1
@g2 = global i32 2

@a = alias i32, inttoptr(i32 sub (i32 ptrtoint (i32, inttoptr(i32 sub (i32 ptrtoint (i32* @g1 to i32),
                             i32 ptrtoint (i32* @g2 to i32)) to i32*)

Fix the gold test cases after alias changes
Fix the gold test cases after alias changes

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@247381 91177308-0d34-0410-b5e6-96231b3b80d8
