summaryrefslogtreecommitdiff
path: root/tests/testsuite.h
blob: 3a2a36263679ae4fa7ada9a35b8a71f51403f20e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* We don't need perfect functions for these tests. */
#undef malloc
#undef memcmp
#undef realloc

/* 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
   warns about this.  Warning introduced in GCC 4.7. */
#if defined __cplusplus && __cplusplus < 201103L
# if defined __GNUC__ && ! defined __clang__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
#  pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
# endif
#endif