summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CXXModules/examples/public-req-private/pub.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-06-21 16:33:36 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2022-07-06 15:38:11 (GMT)
commitf62c3c3c729c635bca11f8d9c3fabd70fd3eab8f (patch)
treeaf8e6246b61e95999227b970b0e7b2c5c7cc900c /Tests/RunCMake/CXXModules/examples/public-req-private/pub.cxx
parentc5d4dd713f9d0a50cd263850598d1f38fa27ed3b (diff)
downloadCMake-f62c3c3c729c635bca11f8d9c3fabd70fd3eab8f.zip
CMake-f62c3c3c729c635bca11f8d9c3fabd70fd3eab8f.tar.gz
CMake-f62c3c3c729c635bca11f8d9c3fabd70fd3eab8f.tar.bz2
RunCMake/CXXModules: test public modules requiring private modules
Diffstat (limited to 'Tests/RunCMake/CXXModules/examples/public-req-private/pub.cxx')
-rw-r--r--Tests/RunCMake/CXXModules/examples/public-req-private/pub.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/CXXModules/examples/public-req-private/pub.cxx b/Tests/RunCMake/CXXModules/examples/public-req-private/pub.cxx
new file mode 100644
index 0000000..6ff2d23
--- /dev/null
+++ b/Tests/RunCMake/CXXModules/examples/public-req-private/pub.cxx
@@ -0,0 +1,8 @@
+export module pub;
+
+import priv;
+
+export int f()
+{
+ return g();
+}