libliftoff/test/check_ndebug.c
Simon Ser 8f8c4d18a5 test: make sure NDEBUG is not defined
If NDEBUG is defined, then assert() becomes a no-op. Make sure it's
not.
2021-08-12 18:15:50 +02:00

11 lines
165 B
C

#include <stdio.h>
int main(int argc, char *argv[])
{
#ifdef NDEBUG
fprintf(stderr, "NDEBUG is defined, cannot run tests\n");
return 1;
#else
return 0;
#endif
}