tests: simplify prologue

* tests/testsuite.h: We no longer load gnulib in the tests.
This commit is contained in:
Akim Demaille
2019-11-02 22:01:14 +01:00
parent cce6c998b6
commit dcd5bb26e3

View File

@@ -1,11 +1,10 @@
/* We don't need perfect functions for these tests. */ /* Common definitions to include in the generated parsers. See
#undef malloc AT_DATA_SOURCE_PROLOGUE. */
#undef memcmp
#undef realloc
/* In C++ pre C++11 it is standard practice to use 0 for the null /* In C++ pre C++11 it is standard practice to use 0 for the null
pointer. But GCC -std=c++98 with -Wzero-as-null-pointer-constant pointer. But GCC -std=c++98 with -Wzero-as-null-pointer-constant
warns about this. Warning introduced in GCC 4.7. */ warns about this, although this is just no alternative! Warning
introduced in GCC 4.7. */
#if defined __cplusplus && __cplusplus < 201103L #if defined __cplusplus && __cplusplus < 201103L
# if defined __GNUC__ && ! defined __clang__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ # if defined __GNUC__ && ! defined __clang__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
# pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" # pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"