Changed all of these tests to be TestRunner tests (or, at least they can be
[oota-llvm.git] / test / Transforms / DSAnalysis / basictest.ll
1 ; very simple test
2 ;
3 ; RUN: analyze %s -tddatastructure
4
5 implementation
6
7 int *%foo(ulong %A, double %B, long %C) {
8         %X = malloc int*
9         %D = cast int** %X to ulong
10         %E = cast ulong %D to int*
11         store int* %E, int** %X
12
13         %F = malloc {int}
14         %G = getelementptr {int}* %F, long 0, ubyte 0
15         store int* %G, int** %X
16
17         %K = malloc int **
18         store int** %X, int***%K
19
20         %H = cast long %C to int*
21         ret int* null ; %H
22
23