1 ; We use a temporary file so that the test fails when opt crashes.
3 ; RUN: opt < %s -globalopt -S > %t
4 ; RUN: FileCheck %s < %t
6 @foo1 = alias void ()* @foo2
7 ; CHECK: @foo1 = alias void ()* @foo2
9 @foo2 = alias weak void()* @bar1
10 ; CHECK: @foo2 = alias weak void ()* @bar2
12 @bar1 = alias void ()* @bar2
13 ; CHECK: @bar1 = alias void ()* @bar2
16 ; CHECK: declare void @bar2()
21 ; CHECK: call void @foo2()
24 ; CHECK: call void @foo2()
27 ; CHECK: call void @bar2()
32 @foo3 = alias void ()* @bar3
35 define internal void @bar3() {
38 ;CHECK: define void @foo3