mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
5204fedd35
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208658 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
340 B
LLVM
18 lines
340 B
LLVM
; RUN: opt < %s -internalize -internalize-public-api-list main -S | FileCheck %s
|
|
|
|
@A = global i32 0
|
|
; CHECK: @A = internal global i32 0
|
|
|
|
@B = alias i32* @A
|
|
; CHECK: @B = alias internal i32* @A
|
|
|
|
@C = alias i32* @B
|
|
; CHECK: @C = alias internal i32* @B
|
|
|
|
define i32 @main() {
|
|
%tmp = load i32* @C
|
|
ret i32 %tmp
|
|
}
|
|
|
|
; CHECK: define i32 @main() {
|