Home | History | Annotate | Download | only in GlobalOpt
      1 ; RUN: opt < %s -globalopt -S | FileCheck %s
      2 
      3 define internal void @f() {
      4 ; CHECK-NOT: @f
      5 ; CHECK: define void @a
      6 	ret void
      7 }
      8 
      9 @a = alias void ()* @f
     10 
     11 define void @g() {
     12 	call void()* @a()
     13 	ret void
     14 }
     15 
     16 @b = alias internal void ()* @g
     17 ; CHECK-NOT: @b
     18 
     19 define void @h() {
     20 	call void()* @b()
     21 ; CHECK: call void @g
     22 	ret void
     23 }
     24 
     25