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