]> andersk Git - splint.git/blobdiff - test/sizeoftest.expect
Added test case for sizeof bug fix.
[splint.git] / test / sizeoftest.expect
index 4e162a6ed5cd3d530e56f30405235fd1b64fd245..e7cd00ad71ad05b8f242508604f189b5bc638ef0 100644 (file)
@@ -1,8 +1,10 @@
 
 sizeof.c: (in function main)
-sizeof.c:9:2: Unresolved constraint:
-    Lclint is unable to resolve Requires: : MAXSET ((x @ sizeof.c:6:2 ) )  >= 
-    ( 3 )  needed to satisy Requires: : MAXSET ((x @ sizeof.c:6:2 ) )  >=  ( 3
-    ) 
+sizeof.c:6:2: Possible out-of-bounds store:
+    x[(sizeof(x))]
+    Unable to resolve constraint:
+    requires 2 >= 3
+     needed to satisfy precondition:
+    requires maxSet(x @ sizeof.c:6:2) >= 3
 
-Finished LCLint checking --- 1 code error found
+Finished checking --- 1 code warning
This page took 0.040538 seconds and 4 git commands to generate.