1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-26 14:33:02 +02:00
llvm-mirror/test/Assembler/2004-12-05-LocalGlobalSymtabConflict.ll
Reid Spencer 651c5ed3e8 For PR1319:
Upgrade to new Tcl exec based test framework. This exposes three regressions
in llvm-upgrade:
test/Assembler/2002-08-19-BytecodeReader.llx
test/Assembler/2003-08-21-ConstantExprCast-Fold.llx
test/Assembler/2004-01-11-getelementptrfolding.llx

llvm-svn: 36067
2007-04-15 10:07:55 +00:00

22 lines
417 B
LLVM

; RUN: llvm-upgrade < %s | llvm-as | opt -inline | llvm-dis | \
; RUN: 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
}