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/fread-2.c | |
parent | 8266dbf611a37e02c83c4da428f21a7d8c5bf801 (diff) |
various regression tests for -Wbounded
Diffstat (limited to 'regress/gnu/egcs/gcc-bounds/fread-2.c')
-rw-r--r-- | regress/gnu/egcs/gcc-bounds/fread-2.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/regress/gnu/egcs/gcc-bounds/fread-2.c b/regress/gnu/egcs/gcc-bounds/fread-2.c new file mode 100644 index 00000000000..1f0d090e7bb --- /dev/null +++ b/regress/gnu/egcs/gcc-bounds/fread-2.c @@ -0,0 +1,8 @@ +#include <stdio.h> + +int main(int argc, char **argv) { + char buf[100]; + FILE *fp; + fread(buf, sizeof(char), sizeof(buf) + 10, fp); + return 1; +} |