Nicholas Nethercote f6fdbbf06d Don't use non-ansi features in valgrind.h in case it's used in a file
compiled with -ansi.  Added a regtest for it.  Fixed bug #103182.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4044
2005-06-28 19:44:10 +00:00

15 lines
441 B
C

/* It's possible that people #include valgrind.h in files compiled with
* -ansi. So valgrind.h shouldn't contain any code that won't pass -ansi,
* such as C++ style "//" comments. This test ensures that. So the test is
* really that it compiles ok, rather than it runs ok. From bug report
* #103182. */
#include "valgrind.h"
#include "../../memcheck/memcheck.h"
#include "../../helgrind/helgrind.h"
int main(void)
{
return 0;
}