Add new testcase for UINT8_C and UINT16_C. git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@1164 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-crt/testcases/t_stdint.c b/mingw-w64-crt/testcases/t_stdint.c new file mode 100644 index 0000000..d883b5a --- /dev/null +++ b/mingw-w64-crt/testcases/t_stdint.c
@@ -0,0 +1,15 @@ +#include <stdio.h> +#include <stdlib.h> +#include <stdint.h> + +int main() +{ + int check_UINT8_C = + (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; +int check_UINT16_C = + (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; + if (check_UINT8_C == -1 || check_UINT16_C == -1) + abort (); + return 0; +} +