mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +00:00
Testcase for PR2146
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53155 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
14
test/Linker/2008-07-06-AliasFnDecl.ll
Normal file
14
test/Linker/2008-07-06-AliasFnDecl.ll
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
; PR2146
|
||||||
|
; RUN: llvm-as %s -o %t1.bc -f
|
||||||
|
; RUN: llvm-as %p/2008-07-06-AliasFnDecl2.ll -o %t2.bc -f
|
||||||
|
; RUN: llvm-link %t1.bc %t2.bc -f -o %t3.bc
|
||||||
|
|
||||||
|
@b = alias void ()* @a
|
||||||
|
|
||||||
|
define void @a() nounwind {
|
||||||
|
entry:
|
||||||
|
br label %return
|
||||||
|
|
||||||
|
return:
|
||||||
|
ret void
|
||||||
|
}
|
13
test/Linker/2008-07-06-AliasFnDecl2.ll
Normal file
13
test/Linker/2008-07-06-AliasFnDecl2.ll
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
; This file is used by 2008-07-06-AliasFnDecl2.ll
|
||||||
|
; RUN: true
|
||||||
|
|
||||||
|
define void @c() nounwind {
|
||||||
|
entry:
|
||||||
|
call void @b( ) nounwind
|
||||||
|
br label %return
|
||||||
|
|
||||||
|
return:
|
||||||
|
ret void
|
||||||
|
}
|
||||||
|
|
||||||
|
declare void @b()
|
Reference in New Issue
Block a user