Fix 64-bit uncleanness in VG_(get_bbs_translated)/VG_(get_bbs_discarded_or_dumped) ..
[valgrind.git] / memcheck / tests / inline.c
blobcb023b27d1447755c79d2f82bd51ccff5262a7db
2 #include <stdio.h>
3 #include <stdlib.h>
5 __inline__
6 static int addemup ( int* arr )
8 int i, j = 0;
9 for (i = 0; i <= 10; i++)
10 j += arr[i];
11 return j;
14 int main ( void )
16 int sum;
17 int* a = calloc(10, sizeof(int));
18 sum = addemup(a);
19 printf("sum is %d\n", sum);
20 return 0;