add test 3

This commit is contained in:
Josh Holtrop 2018-05-30 20:45:55 -04:00
parent ca929b5ecd
commit 273cdbcbf8
2 changed files with 20 additions and 0 deletions

19
tests/t003.cxl Normal file
View File

@ -0,0 +1,19 @@
#include <stdio.h>
int sum(int * arr)
{
int s;
for (s = 0; *arr != 0; arr++)
{
s += *arr;
}
return s;
}
int main(int argc, char * argv[])
{
int a[] = {5, 6, 7, 0};
int b[] = {10, 20, -500, 0};
printf("%d;%d\n", sum(a), sum(b));
return 0;
}

1
tests/t003.x Normal file
View File

@ -0,0 +1 @@
18;-470