mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-20 09:30:43 +00:00
69ccadd753
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32115 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
406 B
LLVM
21 lines
406 B
LLVM
; RUN: llvm-upgrade < %s | llvm-as | opt -inline | llvm-dis | not grep '%G = alloca int'
|
|
|
|
; 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
|
|
}
|
|
|