mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
4797826e17
TestRunner tests). This makes creating the new test database class easier to implement. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8841 91177308-0d34-0410-b5e6-96231b3b80d8
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
|
|
}
|
|
|