llvm-6502/test/Transforms/Internalize/2009-01-05-InternalizeAliases.ll
Rafael Espindola 5204fedd35 Convert test to FileCheck.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208658 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-13 00:31:31 +00:00

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() {