add test 4

This commit is contained in:
josh committed 2018-05-30 20:48:28 -04:00
1 parent 273cdbcbf8
commit 94b65987d4
2 files changed
+22

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
/*
* Test C99 declaration in for() loop.
*/
#include <stdio.h>
int v[10] = {1, 2, 3, 4, 1, 2, 3, 4, 5, 6};
int sum()
{
int s = 0;
for(int i = 0; i < 10; i++)
{
s += v[i];
}
return s;
}
int main(int argc, char * argv[])
{
printf("%d\n", sum());
}
+1
View File
@@ -0,0 +1 @@
31