Move test for r210734 to Feature/aliases.ll.
authorBob Wilson <bob.wilson@apple.com>
Thu, 12 Jun 2014 21:37:30 +0000 (21:37 +0000)
committerBob Wilson <bob.wilson@apple.com>
Thu, 12 Jun 2014 21:37:30 +0000 (21:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210833 91177308-0d34-0410-b5e6-96231b3b80d8

test/Feature/aliases.ll
test/Verifier/alias.ll

index c3593852d71936efce55104c61bee618aab50cbd..ad1d1b08901c8710a57aedb2f08e932344dd35d9 100644 (file)
 @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() {
index d71a7cb2b6ea86909a159c9b0f18e4e9b39bc884..ff02a37bab95d2c6818af3069a6ec58b1e86874a 100644 (file)
@@ -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