aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/GlobalOpt/2009-02-15-ResolveAlias.ll
blob: 6933d4a8d96cc9b259c032b82072ac2a977f6735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
; RUN: opt < %s -globalopt -S | FileCheck %s

define internal void @f() {
; CHECK-NOT: @f(
; CHECK: define void @a
	ret void
}

@a = alias void ()* @f

define void @g() {
	call void() @a()
	ret void
}

@b = internal alias  void ()* @g
; CHECK-NOT: @b

define void @h() {
	call void() @b()
; CHECK: call void @g
	ret void
}