summaryrefslogtreecommitdiffstats
path: root/test cases/common/125 configure file in generator/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/common/125 configure file in generator/src/main.c')
-rw-r--r--test cases/common/125 configure file in generator/src/main.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/test cases/common/125 configure file in generator/src/main.c b/test cases/common/125 configure file in generator/src/main.c
new file mode 100644
index 0000000..6329e47
--- /dev/null
+++ b/test cases/common/125 configure file in generator/src/main.c
@@ -0,0 +1,17 @@
+#include<stdio.h>
+
+#include"confdata.h"
+#if RESULT != 42
+#error Configuration RESULT is not defined correctly
+#endif
+
+#undef RESULT
+
+#include"source.h"
+#if RESULT != 23
+#error Source RESULT is not defined correctly
+#endif
+
+int main(void) {
+ return 0;
+}