blob: a5be2b17d4ad4c525f5f6193c061474b5af42c4e [file] [log] [blame]
Duncan Sands35138e32009-12-08 10:10:20 +00001; RUN: opt < %s -globalopt -S | FileCheck %s
Duncan Sandse7f431f2009-02-15 09:56:08 +00002
3define internal void @f() {
Duncan Sands35138e32009-12-08 10:10:20 +00004; CHECK-NOT: @f
5; CHECK: define void @a
Duncan Sandse7f431f2009-02-15 09:56:08 +00006 ret void
7}
8
9@a = alias void ()* @f
10
11define void @g() {
12 call void()* @a()
13 ret void
14}
Duncan Sands35138e32009-12-08 10:10:20 +000015
16@b = alias internal void ()* @g
17; CHECK-NOT: @b
18
19define void @h() {
20 call void()* @b()
21; CHECK: call void @g
22 ret void
23}
24