2 /* Test that things still (sort of) work when compiled without -g. */
4 int dataglobal
= 3; /* Should go in global data */
5 static int datalocal
= 4; /* Should go in local data */
6 int bssglobal
; /* Should go in global bss */
7 static int bsslocal
; /* Should go in local bss */
18 return x
+ dataglobal
+ datalocal
+ bssglobal
+ bsslocal
;
42 return 2 * middle (x
);
47 main (int argc
, char **argv
)
65 int array_index (char *arr
, int i
)
73 /* The basic concept is just "return arr[i];". But call malloc so that gdb
74 will be able to call functions. */
76 x
= (int *) malloc (sizeof (int));