oscar64/autotest/byteindextest.c

19 lines
195 B
C

#include <stdio.h>
#include <assert.h>
char a[20];
int main(void)
{
for(char i=0; i<20; i++)
a[i] = i;
char x = 0;
for(char i=0; i<20; i++)
x += a[i];
assert(x == 190);
return 0;
}