Break up huge line so that this file is almost readable.
[oota-llvm.git] / test / Assembler / 2007-01-27-UpgradePointers.ll
1 ; PR1137
2 ; RUN: llvm-upgrade < %s &&
3 ; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f &&
4 ; RUN: llvm-upgrade < %s | grep 'tmp = alloca' | wc -l | grep 1
5 ;
6 target datalayout = "e-p:32:32"
7 target endian = little
8 target pointersize = 32
9 target triple = "i686-pc-linux-gnu"
10
11 implementation   ; Functions:
12
13 void %main() {
14 entry:
15     %tmp = alloca uint, align 4             ; <uint*> [#uses=1]
16     %tmp = alloca int, align 4              ; <int*> [#uses=1]
17     "alloca point" = cast int 0 to int      ; <int> [#uses=0]
18     store uint 1, uint* %tmp
19     store int 2, int* %tmp
20     ret void
21 }