2 #if !defined (__STDC__) && !defined (_AIX)
7 signed char v_signed_char
;
8 unsigned char v_unsigned_char
;
11 signed short v_signed_short
;
12 unsigned short v_unsigned_short
;
15 signed int v_signed_int
;
16 unsigned int v_unsigned_int
;
19 signed long v_signed_long
;
20 unsigned long v_unsigned_long
;
28 signed char *v_signed_char_pointer
;
29 unsigned char *v_unsigned_char_pointer
;
31 short *v_short_pointer
;
32 signed short *v_signed_short_pointer
;
33 unsigned short *v_unsigned_short_pointer
;
37 signed int *v_signed_int_pointer
;
38 unsigned int *v_unsigned_int_pointer
;
41 signed long *v_signed_long_pointer
;
42 unsigned long *v_unsigned_long_pointer
;
44 float *v_float_pointer
;
45 double *v_double_pointer
;
49 signed char v_signed_char_array
[2];
50 unsigned char v_unsigned_char_array
[2];
52 short v_short_array
[2];
53 signed short v_signed_short_array
[2];
54 unsigned short v_unsigned_short_array
[2];
57 signed int v_signed_int_array
[2];
58 unsigned int v_unsigned_int_array
[2];
61 signed long v_signed_long_array
[2];
62 unsigned long v_unsigned_long_array
[2];
64 float v_float_array
[2];
65 double v_double_array
[2];
67 int matrix
[2][3] = { { 0, 1, 2}, {3, 4, 5}};
68 int (*rptr
)[3] = matrix
;
70 float ** ptr_to_ptr_to_float
;
83 /* Do nothing function used for forcing some of the above variables to
84 be referenced by the program source. If the variables are not
85 referenced, some linkers will remove the symbol from the symbol
86 table making it impossible to refer to the variable in gdb. */
87 void usevar (void *var
) {}
102 usevar (&v_int_pointer2
);
120 v_unsigned_short
= 5;
128 v_unsigned_long
= 11;
135 v_char_pointer
= &v_char
;
136 v_signed_char_pointer
= &v_signed_char
;
137 v_unsigned_char_pointer
= &v_unsigned_char
;
139 v_short_pointer
= &v_short
;
140 v_signed_short_pointer
= &v_signed_short
;
141 v_unsigned_short_pointer
= &v_unsigned_short
;
143 v_int_pointer
= &v_int
;
144 v_signed_int_pointer
= &v_signed_int
;
145 v_unsigned_int_pointer
= &v_unsigned_int
;
147 v_long_pointer
= &v_long
;
148 v_signed_long_pointer
= &v_signed_long
;
149 v_unsigned_long_pointer
= &v_unsigned_long
;
151 v_float_pointer
= &v_float
;
152 v_double_pointer
= &v_double
;
154 ptr_to_ptr_to_float
= &v_float_pointer
;
157 v_char_array
[0] = v_char
;
158 v_signed_char_array
[0] = v_signed_char
;
159 v_unsigned_char_array
[0] = v_unsigned_char
;
161 v_short_array
[0] = v_short
;
162 v_signed_short_array
[0] = v_signed_short
;
163 v_unsigned_short_array
[0] = v_unsigned_short
;
165 v_int_array
[0] = v_int
;
166 v_int_array
[1] = v_int
* 3;
168 v_signed_int_array
[0] = v_signed_int
;
169 v_unsigned_int_array
[0] = v_unsigned_int
;
171 v_long_array
[0] = v_long
;
172 v_signed_long_array
[0] = v_signed_long
;
173 v_unsigned_long_array
[0] = v_unsigned_long
;
175 v_float_array
[0] = v_float
;
176 v_double_array
[0] = v_double
;
186 char C
, *pC
, **ppC
, ***pppC
, ****ppppC
, *****pppppC
, ******ppppppC
;
187 unsigned char UC
, *pUC
;
189 unsigned short US
, *pUS
;
191 unsigned int UI
, *pUI
;
193 unsigned long UL
, *pUL
;
This page took 0.035397 seconds and 5 git commands to generate.