Debian Codegraph @

test cases/common/134 compute int/prog.c.in

raw
1 #include "@CONFIG@"
2 #include <stdio.h>
3 #include <wchar.h>
4 #include <limits.h>
5 #include "foobar.h"
6
7 int main(void) {
8 if(INTSIZE != sizeof(int)) {
9 fprintf(stderr, "Mismatch: computed int size %d, actual size %d.\n", INTSIZE, (int)sizeof(int));
10 return 1;
11 }
12 if(FOOBAR_IN_CONFIG_H != FOOBAR_IN_FOOBAR_H) {
13 fprintf(stderr, "Mismatch: computed int %d, should be %d.\n", FOOBAR_IN_CONFIG_H, FOOBAR_IN_FOOBAR_H);
14 return 1;
15 }
16 if(MAXINT != INT_MAX) {
17 fprintf(stderr, "Mismatch: computed max int %d, should be %d.\n", MAXINT, INT_MAX);
18 return 1;
19 }
20 if(MININT != INT_MIN) {
21 fprintf(stderr, "Mismatch: computed min int %d, should be %d.\n", MININT, INT_MIN);
22 return 1;
23 }
24 return 0;
25 }