1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 08:23:21 +01:00
llvm-mirror/test/Transforms/GlobalOpt/alias-resolve.ll
Anton Korobeynikov 4676c09dc8 Resolve aliases, when possible
llvm-svn: 56001
2008-09-09 19:04:59 +00:00

20 lines
438 B
LLVM

; RUN: llvm-as < %s | opt -globalopt | llvm-dis > %t
; RUN: cat %t | grep foo1 | count 1
; RUN: cat %t | grep foo2 | count 4
; RUN: cat %t | grep bar1 | count 1
; RUN: cat %t | grep bar2 | count 4
@foo1 = alias void ()* @foo2
@foo2 = alias weak void()* @bar1
@bar1 = alias void ()* @bar2
declare void @bar2()
define void @baz() {
entry:
call void @foo1()
call void @foo2()
call void @bar1()
ret void
}