16 for(i
=0;i
<TAB_SIZE
;i
++) {
26 for(i
=0;i
<TAB_SIZE
+ 1;i
++) {
32 /* actually, profiling test */
39 for(it
=0;it
<NB_ITS
;it
++) {
40 for(i
=0;i
<TAB_SIZE
;i
++) {
53 tab4
= malloc(20 * sizeof(int));
68 tab4
= malloc(20 * sizeof(int));
78 /* XXX: currently: bug */
84 tab4
= malloc(20 * sizeof(int));
99 for(i
=0;i
<TAB_SIZE
+ 1;i
++) {
102 printf("i=%d %x\n", i
, p
);
139 memcpy(tab
, tab1
, 10);
140 memmove(tab
, tab1
, 10);
169 memset(tab
, 'a', sizeof(tab
));
175 char *p
= alloca(TAB_SIZE
);
176 memset(p
, 'a', TAB_SIZE
);
184 char *p
= alloca(TAB_SIZE
-1);
185 memset(p
, 'a', TAB_SIZE
);
190 int (*table_test
[])(void) = {
209 int main(int argc
, char **argv
)
215 printf("usage: boundtest n\n"
216 "test TCC bound checking system\n"
223 index
= atoi(argv
[1]);
224 /* well, we also use bounds on this ! */
225 ftest
= table_test
[index
];
232 * without bound 0.77 s