prog.c.in 447 B

12345678910111213141516
  1. #include "@CONFIG@"
  2. #include <stdio.h>
  3. #include <wchar.h>
  4. int main(int argc, char **argv) {
  5. if(INTSIZE != sizeof(int)) {
  6. fprintf(stderr, "Mismatch: detected int size %d, actual size %d.\n", INTSIZE, (int)sizeof(int));
  7. return 1;
  8. }
  9. if(WCHARSIZE != sizeof(wchar_t)) {
  10. fprintf(stderr, "Mismatch: detected wchar size %d, actual size %d.\n", WCHARSIZE, (int)sizeof(wchar_t));
  11. return 1;
  12. }
  13. return 0;
  14. }