blob: 45f93189312390d5affa3e0a8d34d8f53ae9a0c0 [file] [log] [blame]
Dan Gohman1b4c27772009-09-08 16:50:01 +00001; RUN: opt %s -globalopt | llvm-dis > %t
Anton Korobeynikov76944bd2008-09-09 19:04:59 +00002; RUN: cat %t | grep foo1 | count 1
3; RUN: cat %t | grep foo2 | count 4
4; RUN: cat %t | grep bar1 | count 1
5; RUN: cat %t | grep bar2 | count 4
6
7@foo1 = alias void ()* @foo2
8@foo2 = alias weak void()* @bar1
9@bar1 = alias void ()* @bar2
10
11declare void @bar2()
12
13define void @baz() {
14entry:
15 call void @foo1()
16 call void @foo2()
17 call void @bar1()
18 ret void
19}