322e3248a0aa6fe841bedb05b7ed0f1dcd382f2f
[oota-llvm.git] / test / Transforms / LevelRaise / 2002-05-02-MissedRaise.ll
1 ; This testcase is not level raised properly...
2 ;
3 ; RUN: llvm-as < %s | opt -raise | llvm-dis | grep ' cast ' | not grep '*'
4
5         %List = type { int, %List* }
6
7 implementation
8
9 %List* "createList"(uint %Depth)
10 begin
11         %reg110 = malloc uint, uint 4
12         store uint %Depth, uint* %reg110
13         %reg113 = call %List* %createList( uint %Depth )
14         %reg217 = getelementptr uint* %reg110, long 2
15         %cast221 = cast uint* %reg217 to %List**
16         store %List* %reg113, %List** %cast221
17         %cast222 = cast uint* %reg110 to %List*
18         ret %List* %cast222
19 end
20