summaryrefslogtreecommitdiff
path: root/regress/gnu/egcs/gcc-bounds/strlcat-3.c
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-06-26 18:37:30 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-06-26 18:37:30 +0000
commitb6c1e3dcfb1950398a56baf7ac32394a5715461e (patch)
treee31acec24b5273e867a097df284f49f36c832d83 /regress/gnu/egcs/gcc-bounds/strlcat-3.c
parent8266dbf611a37e02c83c4da428f21a7d8c5bf801 (diff)
various regression tests for -Wbounded
Diffstat (limited to 'regress/gnu/egcs/gcc-bounds/strlcat-3.c')
-rw-r--r--regress/gnu/egcs/gcc-bounds/strlcat-3.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/regress/gnu/egcs/gcc-bounds/strlcat-3.c b/regress/gnu/egcs/gcc-bounds/strlcat-3.c
new file mode 100644
index 00000000000..c8b71570613
--- /dev/null
+++ b/regress/gnu/egcs/gcc-bounds/strlcat-3.c
@@ -0,0 +1,8 @@
+#include <stdio.h>
+#include <string.h>
+
+int main(int argc, char **argv) {
+ char buf[10];
+ strlcat(buf, "foo", 0);
+ return 1;
+}