mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-15 04:08:07 +00:00
e4c6b61ebd
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56001 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
438 B
LLVM
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
|
|
}
|