vendored-meson/meson/test cases/common/30 sizeof/prog.c.in
raw| 1 | #include "@CONFIG@" |
| 2 | #include <stdio.h> |
| 3 | #include <wchar.h> |
| 4 | |
| 5 | int main(void) { |
| 6 | if(INTSIZE != sizeof(int)) { |
| 7 | fprintf(stderr, "Mismatch: detected int size %d, actual size %d.\n", INTSIZE, (int)sizeof(int)); |
| 8 | return 1; |
| 9 | } |
| 10 | if(WCHARSIZE != sizeof(wchar_t)) { |
| 11 | fprintf(stderr, "Mismatch: detected wchar size %d, actual size %d.\n", WCHARSIZE, (int)sizeof(wchar_t)); |
| 12 | return 1; |
| 13 | } |
| 14 | return 0; |
| 15 | } |