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 | 7418e1f4bd5a4bda32af18f46ff2837221d12d5c (patch) | |
tree | c7ba48dc8423a812cb95bf1cd5c381b9b577a280 /test | |
parent | 231097bc9dd185a0767998d351a5ee15f0784c80 (diff) | |
download | llvm-7418e1f4bd5a4bda32af18f46ff2837221d12d5c.tar.gz llvm-7418e1f4bd5a4bda32af18f46ff2837221d12d5c.tar.bz2 llvm-7418e1f4bd5a4bda32af18f46ff2837221d12d5c.tar.xz |
Move test for r210734 to Feature/aliases.ll.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210833 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Feature/aliases.ll | 6 | ||||
-rw-r--r-- | test/Verifier/alias.ll | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/test/Feature/aliases.ll b/test/Feature/aliases.ll index c3593852d7..ad1d1b0890 100644 --- a/test/Feature/aliases.ll +++ b/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/test/Verifier/alias.ll b/test/Verifier/alias.ll index d71a7cb2b6..ff02a37bab 100644 --- a/test/Verifier/alias.ll +++ b/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 |