]> andersk Git - splint.git/commitdiff
Update test results.
authorevans1629 <evans1629>
Fri, 5 Jul 2002 17:39:43 +0000 (17:39 +0000)
committerevans1629 <evans1629>
Fri, 5 Jul 2002 17:39:43 +0000 (17:39 +0000)
test/Makefile.in
test/chararraylit.expect
test/external.expect

index e5476c2abae7ac1c9900adae92f7db921ac2d1da..6f793f4174afdc8d760933f9c391dc15d4f319c8 100644 (file)
@@ -118,7 +118,7 @@ SPLINTRNEST = $(SPLINTRNNEST) -exportlocal +debugfcnconstraint
 UNITTESTS = \
   help \
   abstptr abstract alias alttypes ansireserved argorder \
-  args arraydims arrayinit arraylit blocks break cases cast charlit clauses commentchar compdestroy \
+  args arraydims arrayinit arraylit blocks break cases cast chararraylit charlit clauses commentchar compdestroy \
   compoundliterals compoundstmt constannot controldepth csyntax czechnames czechoslovaknames deadparam \
   decl divzero enum enumtag exports external fields flags forbody format freearray \
   funcpointer functionmacro glob globals impabstract info init inparam internal iter keep libs \
@@ -299,6 +299,7 @@ EXTRA_DIST = ./abst_t.lcl ./abst_t.lcs  \
               ./cases2.c \
               ./cast.c \
               ./cast2.c \
+              ./chararraylit.c \
               ./charlit.c \
               ./clauses.c \
               ./clauses2.c \
@@ -618,6 +619,7 @@ EXTRA_DIST = ./abst_t.lcl ./abst_t.lcs  \
               buffertest.expect \
               cases.expect \
               cast.expect \
+              chararraylit.expect \
               charlit.expect \
               clauses.expect \
               commentchar.expect \
@@ -1088,6 +1090,10 @@ cast:
        -$(SPLINTR) cast -accessmodule -expect 20
        -$(SPLINTRN) cast2.c +checks -exportlocal -exportheader -expect 3
 
+.PHONY: chararraylit
+chararraylit:
+       -$(SPLINTR) chararraylit.c -expect 2
+
 ### Two addition errors detected with 2.5 with -numliteral.
 
 .PHONY: charlit
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..ec76a4e584f823f1765555acb7418537a0b4d8c4 100644 (file)
@@ -0,0 +1,7 @@
+
+chararraylit.c: (in function f)
+chararraylit.c:8:16: String literal with 4 characters is assigned to char [3]
+                        (no room for null terminator): "abc"
+chararraylit.c:13:3: Suspect modification of observer p: *p = 'c'
+
+Finished checking --- 2 code warnings, as expected
index b69d78d3a64f93caa4e98af8096ff0f671a78aac..ecdcf741787bcb7589abcecaffc77ad7dded42f9 100644 (file)
@@ -42,11 +42,11 @@ external.c:5:5: External identifier small2 is not distinguishable from small1
    external.c:4:5: Declaration of small1
 external.c:7:5: External identifier longfunction1 is not distinguishable from
     LONG_MAX in the first 3 characters because alphabetical case is ignored
-   load file standard.lcd:786:1: Specification of LONG_MAX
+   load file standard.lcd:951:1: Specification of LONG_MAX
    One or more additional indistinguishable external names not reported
 external.c:8:5: External identifier longfunction2 is not distinguishable from
     LONG_MAX in the first 3 characters because alphabetical case is ignored
-   load file standard.lcd:786:1: Specification of LONG_MAX
+   load file standard.lcd:951:1: Specification of LONG_MAX
    One or more additional indistinguishable external names not reported
 
 Finished checking --- 4 code warnings, as expected
This page took 0.065169 seconds and 5 git commands to generate.