summaryrefslogtreecommitdiffstats
path: root/test/Modules/Inputs/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/Modules/Inputs/macros.h')
-rw-r--r--test/Modules/Inputs/macros.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Modules/Inputs/macros.h b/test/Modules/Inputs/macros.h
index 4f53556..27f43c0 100644
--- a/test/Modules/Inputs/macros.h
+++ b/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