1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/Assembler/unnamed-alias.ll
Rafael Espindola 8f8f980667 Allow aliases to be unnamed.
If globals can be unnamed, there is no reason for aliases to be different.

The restriction was there since the original implementation in r36435. I
can only guess it was there because of the old bison parser for the old
alias syntax.

llvm-svn: 239921
2015-06-17 17:53:31 +00:00

12 lines
304 B
LLVM

; RUN: llvm-as < %s | llvm-dis | FileCheck %s
@0 = private constant i32 0
; CHECK: @0 = private constant i32 0
@1 = private constant i32 1
; CHECK: @1 = private constant i32 1
@2 = private alias i32* @0
; CHECK: @2 = private alias i32* @0
@3 = private alias i32* @1
; CHECK: @3 = private alias i32* @1