mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
This is the result of: ... $ git rm -rf gdb/testsuite $ git commit -a -m tmp $ git revert HEAD $ git rebase --whitespace=fix HEAD^ ... Tested on x86_64-linux. PR build/33616 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33616
71 lines
900 B
C
71 lines
900 B
C
#ifdef DEF_MACROS
|
|
|
|
#ifdef ONE
|
|
#ifdef FOO
|
|
#undef FOO
|
|
#endif
|
|
#define FOO "hello"
|
|
#else
|
|
#undef FOO
|
|
#endif
|
|
|
|
|
|
#ifdef TWO
|
|
#ifdef FOO
|
|
#undef FOO
|
|
#endif
|
|
#define FOO " "
|
|
#endif
|
|
|
|
#ifdef THREE
|
|
#ifdef FOO
|
|
#undef FOO
|
|
#endif
|
|
#define FOO "world"
|
|
#endif
|
|
|
|
#ifdef FOUR
|
|
#ifdef FOO
|
|
#undef FOO
|
|
#endif
|
|
#define FOO(a) foo = a
|
|
#endif
|
|
#else
|
|
|
|
int main (int argc, const char **argv)
|
|
{
|
|
char *foo;
|
|
|
|
#define DEF_MACROS
|
|
#define ONE
|
|
#include "info-macros.c"
|
|
foo = FOO;
|
|
|
|
#define TWO
|
|
#include "info-macros.c"
|
|
foo = FOO;
|
|
|
|
#define THREE
|
|
#include "info-macros.c"
|
|
foo = FOO;
|
|
|
|
#undef THREE
|
|
#include "info-macros.c"
|
|
foo = FOO;
|
|
|
|
#undef TWO
|
|
#include "info-macros.c"
|
|
foo = FOO;
|
|
|
|
#undef ONE
|
|
#include "info-macros.c"
|
|
foo = (char *)0;
|
|
|
|
#define FOUR
|
|
#include "info-macros.c"
|
|
FOO ("the end.");
|
|
|
|
return 0;
|
|
}
|
|
#endif
|