You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
365 B
18 lines
365 B
4 months ago
|
; 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, i32* @A
|
||
|
; CHECK: @B = internal alias i32, i32* @A
|
||
|
|
||
|
@C = alias i32, i32* @A
|
||
|
; CHECK: @C = internal alias i32, i32* @A
|
||
|
|
||
|
define i32 @main() {
|
||
|
%tmp = load i32, i32* @C
|
||
|
ret i32 %tmp
|
||
|
}
|
||
|
|
||
|
; CHECK: define i32 @main() {
|