]> andersk Git - splint.git/blobdiff - test/moreBufferTests2/initBlock.c
Fixed off by one bug involving arrays initialized with a block of values.
[splint.git] / test / moreBufferTests2 / initBlock.c
diff --git a/test/moreBufferTests2/initBlock.c b/test/moreBufferTests2/initBlock.c
new file mode 100644 (file)
index 0000000..0033bec
--- /dev/null
@@ -0,0 +1,12 @@
+
+int main(void) {
+  
+  int buf[]={0,0,0,0,0,0,0,0,0,0};
+  int buf1[]={0,0,0,0,0,0,0,0,0,0};
+  
+
+  buf[10] = 0;
+  buf1[9]  = 0;
+  
+  return 0;
+}
This page took 0.033482 seconds and 4 git commands to generate.