]> andersk Git - splint.git/blobdiff - test/tests2.2.expect
Added support for ISO C99 _Bool and stdbool bool/true/false. The
[splint.git] / test / tests2.2.expect
index e56aa8896d0c224df3a51039e797006b74e53664..371010754f399a7ccd2a7cfd90cf5ee55a8c04df 100644 (file)
@@ -27,20 +27,26 @@ Finished checking --- 2 code warnings, as expected
 
 decl.c:3:21: Structure struct tm declared with fields { int x; }, specified
                 with fields { int tm_sec; int tm_min; int tm_hour;, ... }
-   load file standard.lcd:1218:1: Specification of struct tm
+   load file standard.lcd: Specification of struct tm
    decl.c:3:17: Field tm_sec in specified corresponds to x in declaration
-   load file standard.lcd:803:1: Specification of tm_sec
+   load file standard.lcd: Specification of tm_sec
 
 Finished checking --- 1 code warning, as expected
 
+Finished checking --- no warnings
+
+enumbool.c:1:16: Enumerator member false declared with inconsistent type:
+                    enum { false, true }
+   load file standard.lcd: Specification of false: bool
+enumbool.c:1:27: Enumerator member true declared with inconsistent type:
+                    enum { false, true }
+   load file standard.lcd: Specification of true: bool
 enumbool.c:1:34: Member of boolean enumerated type definition does not match
-                    name set to represent TRUE or FALSE: false
+                    name set to represent true or false: false
 enumbool.c:1:34: Member of boolean enumerated type definition does not match
-                    name set to represent TRUE or FALSE: true
+                    name set to represent true or false: true
 
-Finished checking --- 2 code warnings, as expected
-
-Finished checking --- no warnings
+Finished checking --- 4 code warnings, expected 2
 
 Finished checking --- no warnings
 
This page took 0.06221 seconds and 4 git commands to generate.