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 */
11 /* Non-int-sized global data variables. */
12 uint8_t dataglobal8
= 0xff;
13 uint32_t dataglobal32_1
= 0x7fffffff;
14 uint32_t dataglobal32_2
= 0x000000ff;
15 uint64_t dataglobal64_1
= 0x7fffffffffffffff;
16 uint64_t dataglobal64_2
= 0x00000000000000ff;
21 return x
+ dataglobal
+ datalocal
+ bssglobal
+ bsslocal
;
33 return 2 * middle (x
);
37 main (int argc
, char **argv
)
44 int array_index (char *arr
, int i
)
46 /* The basic concept is just "return arr[i];". But call malloc so that gdb
47 will be able to call functions. */
49 x
= (int *) malloc (sizeof (int));
57 multf (float v1
, float v2
)
63 multf_noproto (v1
, v2
)
70 mult (double v1
, double v2
)
83 add8 (uint8_t v1
, uint8_t v2
)