Stop setting -Wno-unused-result switch in Makefile
[tinycc.git] / tests2 / 50_logical_second_arg.c
blob5fa0bb9174c814e4fe5743e274214ad5de9b4fce
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 :*/