aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll
blob: 584f0bf467fac0e6bf87267ba12f5a870cb61bc7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; RUN: opt < %s -globaldce -S > %t
; RUN: FileCheck %s < %t
; RUN: FileCheck --check-prefix=DEAD %s < %t

@A = global i32 0
; CHECK: @A = global i32 0

@D = internal alias i32* @A
; DEAD-NOT: @D

@L1 = alias i32* @A
; CHECK: @L1 = alias i32* @A

@L2 = internal alias i32* @L1
; CHECK: @L2 = internal alias i32* @L1

@L3 = alias i32* @L2
; CHECK: @L3 = alias i32* @L2