new testcase for problem causing 2003-10-12-GlobalVarInitializers failures

llvm-svn: 10251
This commit is contained in:
Chris Lattner 2003-11-29 05:19:15 +00:00
parent 8abd7dca76
commit 6d94d10377
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
; The program should not just cast 2143289344 to float and store it!
;
; RUN: llvm-as < %s | opt -raise | llvm-dis | not grep 41DFF
void %test() {
%mem_tmp = alloca float
%tmp.0 = cast float* %mem_tmp to uint*
store uint 2143289344, uint* %tmp.0
ret void
}