mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 15:32:52 +01:00
8a261626fc
TestRunner tests). This makes creating the new test database class easier to implement. llvm-svn: 8841
24 lines
406 B
LLVM
24 lines
406 B
LLVM
; very simple test
|
|
;
|
|
; RUN: analyze %s -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, ubyte 0
|
|
store int* %G, int** %X
|
|
|
|
%K = malloc int **
|
|
store int** %X, int***%K
|
|
|
|
%H = cast long %C to int*
|
|
ret int* null ; %H
|
|
}
|
|
|