summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/Inputs')
-rw-r--r--clang/test/Modules/Inputs/config.h7
-rw-r--r--clang/test/Modules/Inputs/module.map5
2 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/config.h b/clang/test/Modules/Inputs/config.h
new file mode 100644
index 00000000000..f2dfda64c3d
--- /dev/null
+++ b/clang/test/Modules/Inputs/config.h
@@ -0,0 +1,7 @@
+#ifdef WANT_FOO
+int* foo();
+#endif
+
+#ifdef WANT_BAR
+char *bar();
+#endif
diff --git a/clang/test/Modules/Inputs/module.map b/clang/test/Modules/Inputs/module.map
index 53f2fd65d34..479bfcfa7ff 100644
--- a/clang/test/Modules/Inputs/module.map
+++ b/clang/test/Modules/Inputs/module.map
@@ -183,3 +183,8 @@ module cxx_inline_namespace {
module cxx_linkage_cache {
header "cxx-linkage-cache.h"
}
+
+module config {
+ header "config.h"
+ config_macros [exhaustive] WANT_FOO, WANT_BAR
+}
OpenPOWER on IntegriCloud