llvm/test/Assembler/alias-redefinition.ll
Rafael Espindola 1acea2db56 Don't crash on redefinitions.
One error we were not deleting the alias or putting it in the Module. The
end result is that there was an use left of the aliasee when the module was
deleted.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208447 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-09 21:49:17 +00:00

8 lines
162 B
LLVM

; RUN: not llvm-as %s 2>&1 | FileCheck %s
; CHECK: error: redefinition of global named '@bar'
@foo = global i32 0
@bar = alias i32* @foo
@bar = alias i32* @foo