aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/unit/89 multiple envvars/prog.c
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/unit/89 multiple envvars/prog.c')
-rw-r--r--meson/test cases/unit/89 multiple envvars/prog.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/meson/test cases/unit/89 multiple envvars/prog.c b/meson/test cases/unit/89 multiple envvars/prog.c
new file mode 100644
index 000000000..38d3c123b
--- /dev/null
+++ b/meson/test cases/unit/89 multiple envvars/prog.c
@@ -0,0 +1,18 @@
+#include<stdio.h>
+
+#ifndef CPPFLAG
+#error CPPFLAG not set
+#endif
+
+#ifndef CFLAG
+#error CFLAGS not set
+#endif
+
+#ifdef CXXFLAG
+#error CXXFLAG is set
+#endif
+
+int main(int argc, char **argv) {
+ printf("%d %s\n", argc, argv[0]);
+ return 0;
+}