New testcase distilled from SPEC MCF benchmark
[oota-llvm.git] / test / Transforms / LevelRaise / 2002-07-18-MissedAllocaRaise.ll
1 ; Looks like we don't raise alloca's like we do mallocs
2 ;
3 ; RUN: if as < %s | opt -raise | dis | grep '= cast' | grep \*
4 ; RUN: then exit 1
5 ; RUN: else exit 0
6 ; RUN: fi
7
8 implementation   ; Functions:
9
10 int *%X() {
11         %reg107 = alloca ubyte, uint 4
12         %cast213 = cast ubyte* %reg107 to int*
13         ret int* %cast213
14 }