arch/m68k-amiga: Define the gcc symbol 'start' instead of using .bss
[AROS.git] / compiler / purify / test6.c
blob89b2111bc99b90288aa8556e960edee2c53138e3
1 #include <stdio.h>
2 #include <stdlib.h>
4 int main (int argc, char ** argv)
6 char * str;
7 int i;
9 str = malloc (8);
11 printf ("str=%p (malloc)\n", str);
13 i = str[3]; /* UMR */
15 str[-1] = 0; /* IWR */
16 str[8] = 0; /* IWR */
18 str = calloc (1, 3); /* MLK */
20 printf ("str=%p (calloc)\n", str);
22 i = str[1]; /* ok */
23 str[4] = 0; /* IWR */
25 str = realloc (str, 7);
27 printf ("str=%p (realloc)\n", str);
29 str[4] = 0; /* ok */
30 i = str[1]; /* ok */
31 i = str[5]; /* UMR */
33 free (str);
35 i = str[1]; /* FMR */
36 str[1] = 1; /* FMW */
38 return 0;