15 for(i
=0;i
<TAB_SIZE
;i
++) {
25 for(i
=0;i
<TAB_SIZE
+ 1;i
++) {
31 /* actually, profiling test */
38 for(it
=0;it
<NB_ITS
;it
++) {
39 for(i
=0;i
<TAB_SIZE
;i
++) {
52 tab4
= malloc(20 * sizeof(int));
67 tab4
= malloc(20 * sizeof(int));
77 /* XXX: currently: bug */
83 tab4
= malloc(20 * sizeof(int));
98 for(i
=0;i
<TAB_SIZE
+ 1;i
++) {
101 printf("i=%d %x\n", i
, p
);
138 memcpy(tab
, tab1
, 10);
139 memmove(tab
, tab1
, 10);
168 memset(tab
, 'a', sizeof(tab
));
172 int (*table_test
[])(void) = {
189 int main(int argc
, char **argv
)
195 printf("usage: boundtest n\n"
196 "test TCC bound checking system\n"
203 index
= atoi(argv
[1]);
204 /* well, we also use bounds on this ! */
205 ftest
= table_test
[index
];
212 * without bound 0.77 s