mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-25 13:20:57 +00:00

This matches gcc's behavior. It also seems natural given that aliases contain other properties that govern how it is accessed (linkage, visibility, dll storage). Clang still has to be updated to expose this feature to C. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209759 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
574 B
LLVM
23 lines
574 B
LLVM
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
|
|
|
@v1 = global i32 0
|
|
; CHECK: @v1 = global i32 0
|
|
|
|
@v2 = global [1 x i32] zeroinitializer
|
|
; CHECK: @v2 = global [1 x i32] zeroinitializer
|
|
|
|
@v3 = alias i16, i32* @v1
|
|
; CHECK: @v3 = alias i16, i32* @v1
|
|
|
|
@v4 = alias i32, [1 x i32]* @v2
|
|
; CHECK: @v4 = alias i32, [1 x i32]* @v2
|
|
|
|
@v5 = alias addrspace(2) i32, i32* @v1
|
|
; CHECK: @v5 = alias addrspace(2) i32, i32* @v1
|
|
|
|
@v6 = alias i16, i32* @v1
|
|
; CHECK: @v6 = alias i16, i32* @v1
|
|
|
|
@v7 = thread_local(localdynamic) alias i32* @v1
|
|
; CHECK: @v7 = thread_local(localdynamic) alias i32* @v1
|