• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -internalize -internalize-public-api-list main -S | FileCheck %s
2
3@A = global i32 0
4; CHECK: @A = internal global i32 0
5
6@B = alias i32, i32* @A
7; CHECK: @B = internal alias i32, i32* @A
8
9@C = alias i32, i32* @A
10; CHECK: @C = internal alias i32, i32* @A
11
12define i32 @main() {
13	%tmp = load i32, i32* @C
14	ret i32 %tmp
15}
16
17; CHECK: define i32 @main() {
18