diff options
Diffstat (limited to 'regress/gnu/egcs/gcc-bounds/getcwd-2.c')
-rw-r--r-- | regress/gnu/egcs/gcc-bounds/getcwd-2.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/regress/gnu/egcs/gcc-bounds/getcwd-2.c b/regress/gnu/egcs/gcc-bounds/getcwd-2.c new file mode 100644 index 00000000000..bd007c64b11 --- /dev/null +++ b/regress/gnu/egcs/gcc-bounds/getcwd-2.c @@ -0,0 +1,7 @@ +#include <unistd.h> + +int main(int argc, char **argv) { + char buf[10]; + getcwd(buf, sizeof(buf) - 1000); + return 1; +} |