llvm.org GIT mirror llvm / 7418e1f
Move test for r210734 to Feature/aliases.ll. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210833 91177308-0d34-0410-b5e6-96231b3b80d8 Bob Wilson 5 years ago
2 changed file(s) with 6 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
88 @foo2 = alias i32* @bar
99 @foo3 = alias i32* @foo2
1010 @foo4 = unnamed_addr alias i32* @foo2
11
12 ; Make sure the verifier does not complain about references to a global
13 ; declaration from an initializer.
14 @decl = external global i32
15 @ptr = global i32* @decl
16 @ptr_a = alias i32** @ptr
1117
1218 %FunTy = type i32()
1319
1010 ; CHECK: Alias must point to a definition
1111 ; CHECK-NEXT: @ga
1212
13 ; References to a global declaration from an initializer are OK.
14 @gptr = global i32* @g
15 @gptr_a = alias i32** @gptr
16 ; CHECK-NOT: Alias must point to a definition
1713
1814 @test2_a = alias i32* @test2_b
1915 @test2_b = alias i32* @test2_a