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