diff options
Diffstat (limited to 'test cases/unit/2 testsetups/buggy.c')
-rw-r--r-- | test cases/unit/2 testsetups/buggy.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test cases/unit/2 testsetups/buggy.c b/test cases/unit/2 testsetups/buggy.c new file mode 100644 index 0000000..d238830 --- /dev/null +++ b/test cases/unit/2 testsetups/buggy.c @@ -0,0 +1,14 @@ +#include<stdio.h> +#include<stdlib.h> + +#include<impl.h> + +int main(int argc, char **argv) { + char *ten = malloc(10); + if(getenv("TEST_ENV")) { + do_nasty(ten); + printf("TEST_ENV is set.\n"); + } + free(ten); + return 0; +} |