summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/Inputs/macros.h')
-rw-r--r--clang/test/Modules/Inputs/macros.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/macros.h b/clang/test/Modules/Inputs/macros.h
index 4f535563ad2..27f43c0626e 100644
--- a/clang/test/Modules/Inputs/macros.h
+++ b/clang/test/Modules/Inputs/macros.h
@@ -8,3 +8,12 @@
#__private_macro MODULE
int (INTEGER);
+
+#if !__building_module(macros)
+# error Can't include this header without building the 'macros' module.
+#endif
+
+#ifdef __MODULE__
+extern int __MODULE__;
+#endif
+
OpenPOWER on IntegriCloud