]> andersk Git - splint.git/blame_incremental - test/tests2.5/booltest.c
Modified tests to account for bool being defined in the standard library.
[splint.git] / test / tests2.5 / booltest.c
... / ...
CommitLineData
1/*
2** Boolean type checking
3*/
4// bool is now defined in the standard library
5#include<stdbool.h>
6
7bool f (int i, bool b) {
8 if (i) { /* error with -boolint -predboolint */
9 return i; /* error with -boolint */
10 } else {
11 return b; /* okay */
12 }
13}
14
This page took 0.032794 seconds and 5 git commands to generate.