summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/CXXModules/examples/duplicate/duplicate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CXXModules/examples/duplicate/duplicate.cxx')
-rw-r--r--Tests/RunCMake/CXXModules/examples/duplicate/duplicate.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/CXXModules/examples/duplicate/duplicate.cxx b/Tests/RunCMake/CXXModules/examples/duplicate/duplicate.cxx
new file mode 100644
index 0000000000..c0c820b6a4
--- /dev/null
+++ b/Tests/RunCMake/CXXModules/examples/duplicate/duplicate.cxx
@@ -0,0 +1,11 @@
+module;
+
+#include <iostream>
+
+export module duplicate;
+
+export int from_import()
+{
+ std::cerr << "From duplicate #" << NDUPLICATE << std::endl;
+ return 0;
+}