4 /* Test that things still (sort of) work when compiled without -g. */
6 int dataglobal
= 3; /* Should go in global data */
7 static int datalocal
= 4; /* Should go in local data */
8 int bssglobal
; /* Should go in global bss */
9 static int bsslocal
; /* Should go in local bss */
14 return x
+ dataglobal
+ datalocal
+ bssglobal
+ bsslocal
;
26 return 2 * middle (x
);
30 main (int argc
, char **argv
)
37 int array_index (char *arr
, int i
)
39 /* The basic concept is just "return arr[i];". But call malloc so that gdb
40 will be able to call functions. */
42 x
= (int *) malloc (sizeof (int));
50 multf (float v1
, float v2
)
56 multf_noproto (v1
, v2
)
63 mult (double v1
, double v2
)
76 add8 (uint8_t v1
, uint8_t v2
)
This page took 0.03147 seconds and 4 git commands to generate.