X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Ftest%2Fmultidim-array.c;h=96e14c34d3b1e72089595ef0e72862525c37bd7e;hb=6050fa8834ddb4fc3979c949efb3bd8a7d51bc40;hp=7654cc51893082f581c8a0b5b842da391c74145f;hpb=e4691fe2e5046a9b2ae912e23e92ddcdcd2bb6e9;p=libfirm diff --git a/ir/be/test/multidim-array.c b/ir/be/test/multidim-array.c index 7654cc518..96e14c34d 100644 --- a/ir/be/test/multidim-array.c +++ b/ir/be/test/multidim-array.c @@ -3,10 +3,14 @@ typedef int arraya[8][8]; -main() +int main() { int i = 0,j = 0; arraya *p; p = (arraya*)calloc(1,sizeof(arraya)); - (*p)[i][j] = 1; + (*p) + [i] + [j] = 1; + + return 0; }