diff options
| author | Bob Wilson <bob.wilson@apple.com> | 2014-06-12 21:37:30 +0000 |
|---|---|---|
| committer | Bob Wilson <bob.wilson@apple.com> | 2014-06-12 21:37:30 +0000 |
| commit | 5e61d0b8161ec7cde0898628d3ad57bca69369de (patch) | |
| tree | c4f70de7c0ffc46f7bad9f057ad9b1aa480d6aca | |
| parent | b30469955d0d19d70cff370a7ac7b4d2e15d72cb (diff) | |
| download | bcm5719-llvm-5e61d0b8161ec7cde0898628d3ad57bca69369de.tar.gz bcm5719-llvm-5e61d0b8161ec7cde0898628d3ad57bca69369de.zip | |
Move test for r210734 to Feature/aliases.ll.
llvm-svn: 210833
| -rw-r--r-- | llvm/test/Feature/aliases.ll | 6 | ||||
| -rw-r--r-- | llvm/test/Verifier/alias.ll | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/llvm/test/Feature/aliases.ll b/llvm/test/Feature/aliases.ll index c3593852d71..ad1d1b08901 100644 --- a/llvm/test/Feature/aliases.ll +++ b/llvm/test/Feature/aliases.ll @@ -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() { diff --git a/llvm/test/Verifier/alias.ll b/llvm/test/Verifier/alias.ll index d71a7cb2b6e..ff02a37bab9 100644 --- a/llvm/test/Verifier/alias.ll +++ b/llvm/test/Verifier/alias.ll @@ -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 |

