mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-24 21:14:56 +00:00
eaff2d55a9
Before, the parser would assert on the following code: @a2 = global i8 addrspace(1)* @a @a = addrspace(1) global i8 0 because the type of @a was "i8*" instead of "i8 addrspace(1)*" when parsing the initializer for @a2. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168197 91177308-0d34-0410-b5e6-96231b3b80d8
9 lines
252 B
LLVM
9 lines
252 B
LLVM
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
|
|
|
; Make sure the address space of forward decls is preserved
|
|
|
|
; CHECK: @a2 = global i8 addrspace(1)* @a
|
|
; CHECK: @a = addrspace(1) global i8 0
|
|
@a2 = global i8 addrspace(1)* @a
|
|
@a = addrspace(1) global i8 0
|