1#include "shared.rsh"
2
3const int dimX = 20;
4rs_allocation a[dimX];
5
6void array_alloc_test() {
7    bool failed = false;
8
9    for (int i = 0; i < dimX; i++) {
10        rsDebug("i: ", i);
11        _RS_ASSERT(rsAllocationGetDimX(a[i]) == 1);
12    }
13
14    if (failed) {
15        rsSendToClientBlocking(RS_MSG_TEST_FAILED);
16    }
17    else {
18        rsSendToClientBlocking(RS_MSG_TEST_PASSED);
19    }
20}
21
22