[PATCH 7/57][Arm][GAS] Add support for MVE instructions: vstr/vldr
[binutils-gdb.git] / gdb / testsuite / gdb.base / info-macros.c
blob4a6c96073b95a16e3d1394013d934fc1a898aa73
1 #ifdef DEF_MACROS
3 #ifdef ONE
4 #ifdef FOO
5 #undef FOO
6 #endif
7 #define FOO "hello"
8 #else
9 #undef FOO
10 #endif
13 #ifdef TWO
14 #ifdef FOO
15 #undef FOO
16 #endif
17 #define FOO " "
18 #endif
20 #ifdef THREE
21 #ifdef FOO
22 #undef FOO
23 #endif
24 #define FOO "world"
25 #endif
27 #ifdef FOUR
28 #ifdef FOO
29 #undef FOO
30 #endif
31 #define FOO(a) foo = a
32 #endif
33 #else
35 int main (int argc, const char **argv)
37 char *foo;
39 #define DEF_MACROS
40 #define ONE
41 #include "info-macros.c"
42 foo = FOO;
44 #define TWO
45 #include "info-macros.c"
46 foo = FOO;
48 #define THREE
49 #include "info-macros.c"
50 foo = FOO;
52 #undef THREE
53 #include "info-macros.c"
54 foo = FOO;
56 #undef TWO
57 #include "info-macros.c"
58 foo = FOO;
60 #undef ONE
61 #include "info-macros.c"
62 foo = (char *)0;
64 #define FOUR
65 #include "info-macros.c"
66 FOO ("the end.");
68 return 0;
70 #endif