summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CXXModules/examples/import-modules/use.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CXXModules/examples/import-modules/use.cxx')
-rw-r--r--Tests/RunCMake/CXXModules/examples/import-modules/use.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/CXXModules/examples/import-modules/use.cxx b/Tests/RunCMake/CXXModules/examples/import-modules/use.cxx
index 2da1913..a012f38 100644
--- a/Tests/RunCMake/CXXModules/examples/import-modules/use.cxx
+++ b/Tests/RunCMake/CXXModules/examples/import-modules/use.cxx
@@ -4,6 +4,10 @@
# endif
#endif
+#ifdef FROM_USAGE_REQS
+# error "compile definitions leaked from private module requirements"
+#endif
+
import importable;
int main(int argc, char* argv[])