2014-05-13 08:31:31 +08:00
|
|
|
; RUN: opt < %s -internalize -internalize-public-api-list main -S | FileCheck %s
|
2009-01-06 05:24:45 +08:00
|
|
|
|
|
|
|
@A = global i32 0
|
2014-05-13 08:31:31 +08:00
|
|
|
; CHECK: @A = internal global i32 0
|
|
|
|
|
2015-09-11 11:22:04 +08:00
|
|
|
@B = alias i32, i32* @A
|
|
|
|
; CHECK: @B = internal alias i32, i32* @A
|
2014-05-13 08:31:31 +08:00
|
|
|
|
2015-09-11 11:22:04 +08:00
|
|
|
@C = alias i32, i32* @A
|
|
|
|
; CHECK: @C = internal alias i32, i32* @A
|
2009-01-06 05:24:45 +08:00
|
|
|
|
|
|
|
define i32 @main() {
|
2015-02-28 05:17:42 +08:00
|
|
|
%tmp = load i32, i32* @C
|
2009-01-06 05:24:45 +08:00
|
|
|
ret i32 %tmp
|
|
|
|
}
|
2014-05-13 08:31:31 +08:00
|
|
|
|
|
|
|
; CHECK: define i32 @main() {
|