Files
json-c/tests/test_strerror.c
T

18 lines
378 B
C
Raw Normal View History

#ifdef NDEBUG
#undef NDEBUG
#endif
2020-08-22 11:35:50 +02:00
#include "strerror_override.h"
#include <stdio.h>
int main(int argc, char **argv)
{
puts(strerror(10000));
puts(strerror(999));
/* Negative values must not index before the digit table (out-of-bounds
* read); INT_MIN also exercises the unsigned magnitude handling. */
puts(strerror(-5));
puts(strerror(-2147483647 - 1));
2020-08-22 11:35:50 +02:00
return 0;
}