mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
New testcase for the bug affecting 255.vortex in CBE mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18529 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5978485324
commit
c2e63a2d93
20
test/Assembler/2004-12-05-LocalGlobalSymtabConflict.ll
Normal file
20
test/Assembler/2004-12-05-LocalGlobalSymtabConflict.ll
Normal file
@ -0,0 +1,20 @@
|
||||
; RUN: llvm-as < %s | opt -inline | llvm-dis | llvm-as | lli
|
||||
|
||||
; In this testcase, %bar stores to the global G. Make sure that inlining does
|
||||
; not cause it to store to the G in main instead.
|
||||
|
||||
%G = global int 7
|
||||
|
||||
int %main() {
|
||||
%G = alloca int
|
||||
store int 0, int* %G
|
||||
call void %bar()
|
||||
%RV = load int* %G
|
||||
ret int %RV
|
||||
}
|
||||
|
||||
internal void %bar() {
|
||||
store int 123, int* %G
|
||||
ret void
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user