summaryrefslogtreecommitdiffstats
path: root/llvm/test/Verifier/alias.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Verifier/alias.ll')
-rw-r--r--llvm/test/Verifier/alias.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/Verifier/alias.ll b/llvm/test/Verifier/alias.ll
index ff02a37bab9..d71a7cb2b6e 100644
--- a/llvm/test/Verifier/alias.ll
+++ b/llvm/test/Verifier/alias.ll
@@ -11,6 +11,10 @@ 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
OpenPOWER on IntegriCloud