[llvm-commits] CVS: llvm/test/Assembler/2007-01-27-UpgradePointers.ll
Reid Spencer
reid at x10sys.com
Sat Jan 27 16:45:44 PST 2007
Changes in directory llvm/test/Assembler:
2007-01-27-UpgradePointers.ll added (r1.1)
---
Log message:
Test case for PR1137: http://llvm.org/PR1137 . This makes sure that we don't get erroneous
"redefinition" errors that cause the upgrade to fail.
---
Diffs of the changes: (+21 -0)
2007-01-27-UpgradePointers.ll | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+)
Index: llvm/test/Assembler/2007-01-27-UpgradePointers.ll
diff -c /dev/null llvm/test/Assembler/2007-01-27-UpgradePointers.ll:1.1
*** /dev/null Sat Jan 27 18:45:38 2007
--- llvm/test/Assembler/2007-01-27-UpgradePointers.ll Sat Jan 27 18:45:28 2007
***************
*** 0 ****
--- 1,21 ----
+ ; PR1137
+ ; RUN: llvm-upgrade < %s &&
+ ; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f &&
+ ; RUN: llvm-upgrade < %s | grep 'tmp = alloca' | wc -l | grep 1
+ ;
+ target datalayout = "e-p:32:32"
+ target endian = little
+ target pointersize = 32
+ target triple = "i686-pc-linux-gnu"
+
+ implementation ; Functions:
+
+ void %main() {
+ entry:
+ %tmp = alloca uint, align 4 ; <uint*> [#uses=1]
+ %tmp = alloca int, align 4 ; <int*> [#uses=1]
+ "alloca point" = cast int 0 to int ; <int> [#uses=0]
+ store uint 1, uint* %tmp
+ store int 2, int* %tmp
+ ret void
+ }
More information about the llvm-commits
mailing list