1 ; RUN: opt < %s -passes=globaldce -S > %t
2 ; RUN: FileCheck %s < %t
3 ; RUN: FileCheck --check-prefix=DEAD %s < %t
6 ; CHECK: @A = global i32 0
8 @D = internal alias i32, ptr @A
11 @L1 = alias i32, ptr @A
12 ; CHECK: @L1 = alias i32, ptr @A
14 @L2 = internal alias i32, ptr @L1
15 ; CHECK: @L2 = internal alias i32, ptr @L1
17 @L3 = alias i32, ptr @L2
18 ; CHECK: @L3 = alias i32, ptr @L2