aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/unit/2 testsetups/buggy.c
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/unit/2 testsetups/buggy.c')
-rw-r--r--meson/test cases/unit/2 testsetups/buggy.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/meson/test cases/unit/2 testsetups/buggy.c b/meson/test cases/unit/2 testsetups/buggy.c
new file mode 100644
index 000000000..d23883017
--- /dev/null
+++ b/meson/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;
+}