mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-12-19 11:23:32 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239921 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
11
test/Assembler/unnamed-alias.ll
Normal file
11
test/Assembler/unnamed-alias.ll
Normal file
@@ -0,0 +1,11 @@
|
||||
; 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
|
||||
Reference in New Issue
Block a user