diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-06-26 18:37:30 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-06-26 18:37:30 +0000 |
commit | b6c1e3dcfb1950398a56baf7ac32394a5715461e (patch) | |
tree | e31acec24b5273e867a097df284f49f36c832d83 /regress/gnu/egcs/gcc-bounds/strlcat-3.c | |
parent | 8266dbf611a37e02c83c4da428f21a7d8c5bf801 (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.c | 8 |
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; +} |