Clean up pointer using testcases
[oota-llvm.git] / test / Transforms / LevelRaise / 2002-05-23-MissedRaise.ll
1 ; RUN: if as < %s | opt -raise | dis | grep '= cast' | grep \*
2 ; RUN: then exit 1
3 ; RUN: else exit 0
4 ; RUN: fi
5
6 %FILE = type { int, ubyte*, ubyte*, ubyte, ubyte, uint, uint, uint }
7
8 uint %addfile(%FILE* %f) {
9         %cast255 = cast %FILE* %f to sbyte*             ; <sbyte*> [#uses=1]
10         %reg2421 = getelementptr sbyte* %cast255, uint 24               ; <sbyte*> [#uses=1]
11         %reg130 = load sbyte* %reg2421          ; <sbyte> [#uses=1]
12         %cast250 = cast sbyte %reg130 to uint           ; <uint> [#uses=1]
13         ret uint %cast250
14 }