Skip to content
Snippets Groups Projects
Commit ae9f3c25 authored by ben.franksen's avatar ben.franksen
Browse files

test: added validation test for arrays

parent 94015d81
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,7 @@ PROD += subscript ...@@ -26,6 +26,7 @@ PROD += subscript
PROD += syncq PROD += syncq
PROD += pvSync PROD += pvSync
PROD += pvPutAsync PROD += pvPutAsync
PROD += array
#PROD += ctest #PROD += ctest
......
program array
ss array {
state block {
string a4a5s[4][5] = {
{ "00", "01", "02", "03", "04" },
{ "10", "11", "12", "13", "14" },
{ "20", "21", "22", "23", "24" },
{ "30", "31", "32", "33", "34" }
};
string (*a4ps[4])[5] = {
&a4a5s[0],
&a4a5s[1],
&a4a5s[2],
&a4a5s[3]
};
entry {
int i, j;
for (i = 0; i < 4; i++) {
printf("\n");
for (j = 0; j < 5; j++)
printf(" %s", a4a5s[i][j]);
}
printf("\n");
}
when (FALSE) {
} state block
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment