[llvm] r210833 - Move test for r210734 to Feature/aliases.ll.
Bob Wilson
bob.wilson at apple.com
Thu Jun 12 14:37:31 PDT 2014
Author: bwilson
Date: Thu Jun 12 16:37:30 2014
New Revision: 210833
URL: http://llvm.org/viewvc/llvm-project?rev=210833&view=rev
Log:
Move test for r210734 to Feature/aliases.ll.
Modified:
llvm/trunk/test/Feature/aliases.ll
llvm/trunk/test/Verifier/alias.ll
Modified: llvm/trunk/test/Feature/aliases.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Feature/aliases.ll?rev=210833&r1=210832&r2=210833&view=diff
==============================================================================
--- llvm/trunk/test/Feature/aliases.ll (original)
+++ llvm/trunk/test/Feature/aliases.ll Thu Jun 12 16:37:30 2014
@@ -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.
+ at decl = external global i32
+ at ptr = global i32* @decl
+ at ptr_a = alias i32** @ptr
+
%FunTy = type i32()
define i32 @foo_f() {
Modified: llvm/trunk/test/Verifier/alias.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Verifier/alias.ll?rev=210833&r1=210832&r2=210833&view=diff
==============================================================================
--- llvm/trunk/test/Verifier/alias.ll (original)
+++ llvm/trunk/test/Verifier/alias.ll Thu Jun 12 16:37:30 2014
@@ -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.
- at gptr = global i32* @g
- at 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
More information about the llvm-commits
mailing list