]> 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 e50a6f23610400875a0ed993ea2201a4aed04336..371010754f399a7ccd2a7cfd90cf5ee55a8c04df 100644 (file)
@@ -27,25 +27,31 @@ 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 ansi.lcd:962: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 ansi.lcd:638: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
 
 extension.c:2:18: Parse Error: New function scope inside function. (For help on
-               parse errors, see lclint -help parseerrors.)
+               parse errors, see splint -help parseerrors.)
 *** Cannot continue.
 
 Finished checking --- no warnings
This page took 0.055918 seconds and 4 git commands to generate.