source: src/Clight/test/sum.c

Last change on this file was 758, checked in by campbell, 9 years ago

Implement replacement of global var initialisation data by code in Cminor.

File size: 148 bytes
Line 
1char src[5] = {28,17,17,8,4};
2
3int main(void) {
4  int i;
5  char total = 0;
6
7  for (i=0; i<sizeof(src); i++)
8    total += src[i];
9
10  return total;
11}
Note: See TracBrowser for help on using the repository browser.