Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / tcc / 50_logical_second_arg.c
blobddec08c871cfe2a6b63b01775f4125ee00c75a3c
1 #include <stdio.h>
3 int fred()
5 printf("fred\n");
6 return 0;
9 int joe()
11 printf("joe\n");
12 return 1;
15 int main()
17 printf("%d\n", fred() && joe());
18 printf("%d\n", fred() || joe());
19 printf("%d\n", joe() && fred());
20 printf("%d\n", joe() || fred());
21 printf("%d\n", fred() && (1 + joe()));
22 printf("%d\n", fred() || (0 + joe()));
23 printf("%d\n", joe() && (0 + fred()));
24 printf("%d\n", joe() || (1 + fred()));
26 return 0;
29 /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/