Skip to content

Commit

Permalink
Move test for r210734 to Feature/aliases.ll.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210833 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
bob-wilson committed Jun 12, 2014
1 parent 231097b commit 7418e1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions test/Feature/aliases.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 0 additions & 4 deletions test/Verifier/alias.ll
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7418e1f

Please sign in to comment.