llvm/test/Transforms/DSAnalysis/basictest.ll
2006-12-02 04:23:10 +00:00

24 lines
437 B
LLVM

; very simple test
;
; RUN: llvm-upgrade < %s | llvm-as | opt -analyze -tddatastructure
implementation
int *%foo(ulong %A, double %B, long %C) {
%X = malloc int*
%D = cast int** %X to ulong
%E = cast ulong %D to int*
store int* %E, int** %X
%F = malloc {int}
%G = getelementptr {int}* %F, long 0, uint 0
store int* %G, int** %X
%K = malloc int **
store int** %X, int***%K
%H = cast long %C to int*
ret int* null ; %H
}