aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/Internalize/2009-01-05-InternalizeAliases.ll
blob: 16523886a068fb9031dd03233c5ed8bd311d4b03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; 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 = internal alias i32* @A

@C = alias i32* @A
; CHECK: @C = internal alias i32* @A

define i32 @main() {
	%tmp = load i32* @C
	ret i32 %tmp
}

; CHECK: define i32 @main() {