summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/explicit-build/a.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/Inputs/explicit-build/a.h')
-rw-r--r--clang/test/Modules/Inputs/explicit-build/a.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/explicit-build/a.h b/clang/test/Modules/Inputs/explicit-build/a.h
new file mode 100644
index 00000000000..5e3602f58ff
--- /dev/null
+++ b/clang/test/Modules/Inputs/explicit-build/a.h
@@ -0,0 +1,5 @@
+#if !__building_module(a)
+#error "should only get here when building module a"
+#endif
+
+const int a = 1;
OpenPOWER on IntegriCloud