Print this page
new smatch
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/tools/smatch/src/validation/sizeof-bool.c
+++ new/usr/src/tools/smatch/src/validation/sizeof-bool.c
1 1 static int a(void)
2 2 {
3 3 return sizeof(_Bool);
4 4 }
5 5 /*
6 6 * check-name: sizeof(_Bool) is valid
7 7 * check-description: sizeof(_Bool) was rejected because _Bool is not an even
8 8 * number of bytes
9 9 * check-command: sparse -Wsizeof-bool $file
10 10 * check-error-start
11 -sizeof-bool.c:3:16: warning: expression using sizeof bool
11 +sizeof-bool.c:3:16: warning: expression using sizeof _Bool
12 12 * check-error-end
13 13 */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX