forked from OSchip/llvm-project
Move test for r210734 to Feature/aliases.ll.
llvm-svn: 210833
This commit is contained in:
parent
b30469955d
commit
5e61d0b816
|
@ -10,6 +10,12 @@
|
|||
@foo3 = alias i32* @foo2
|
||||
@foo4 = unnamed_addr alias i32* @foo2
|
||||
|
||||
; Make sure the verifier does not complain about references to a global
|
||||
; declaration from an initializer.
|
||||
@decl = external global i32
|
||||
@ptr = global i32* @decl
|
||||
@ptr_a = alias i32** @ptr
|
||||
|
||||
%FunTy = type i32()
|
||||
|
||||
define i32 @foo_f() {
|
||||
|
|
|
@ -11,10 +11,6 @@ declare void @f()
|
|||
; CHECK: Alias must point to a definition
|
||||
; CHECK-NEXT: @ga
|
||||
|
||||
; References to a global declaration from an initializer are OK.
|
||||
@gptr = global i32* @g
|
||||
@gptr_a = alias i32** @gptr
|
||||
; CHECK-NOT: Alias must point to a definition
|
||||
|
||||
@test2_a = alias i32* @test2_b
|
||||
@test2_b = alias i32* @test2_a
|
||||
|
|
Loading…
Reference in New Issue