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
|
|
|
|
|
2009-01-06 05:24:45 +08:00
|
|
|
@B = alias i32* @A
|
2014-07-31 06:51:54 +08:00
|
|
|
; CHECK: @B = internal alias i32* @A
|
2014-05-13 08:31:31 +08:00
|
|
|
|
2014-05-17 03:35:39 +08:00
|
|
|
@C = alias i32* @A
|
2014-07-31 06:51:54 +08:00
|
|
|
; CHECK: @C = internal alias 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() {
|