[PATCH 7/57][Arm][GAS] Add support for MVE instructions: vstr/vldr
[binutils-gdb.git] / gdb / testsuite / gdb.base / all-types.c
blob570fd43a2ff05e163686a25e09f944ba45bbb370
1 /*
2 * the basic C types.
3 */
5 #if !defined (__STDC__) && !defined (_AIX)
6 #define signed /**/
7 #endif
9 char v_char;
10 signed char v_signed_char;
11 unsigned char v_unsigned_char;
13 short v_short;
14 signed short v_signed_short;
15 unsigned short v_unsigned_short;
17 int v_int;
18 signed int v_signed_int;
19 unsigned int v_unsigned_int;
21 long v_long;
22 signed long v_signed_long;
23 unsigned long v_unsigned_long;
25 float v_float;
26 double v_double;
28 int main ()
30 extern void dummy();
31 dummy();
32 return 0;
36 void dummy()
38 /* Some linkers (e.g. on AIX) remove unreferenced variables,
39 so make sure to reference them. */
40 v_char = 'A';
41 v_signed_char = 'B';
42 v_unsigned_char = 'C';
44 v_short = 3;
45 v_signed_short = 4;
46 v_unsigned_short = 5;
48 v_int = 6;
49 v_signed_int = 7;
50 v_unsigned_int = 8;
52 v_long = 9;
53 v_signed_long = 10;
54 v_unsigned_long = 11;
56 v_float = 100.343434;
57 v_double = 200.565656;