summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CXXModules/sources/module-internal-part-impl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CXXModules/sources/module-internal-part-impl.cxx')
-rw-r--r--Tests/RunCMake/CXXModules/sources/module-internal-part-impl.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/CXXModules/sources/module-internal-part-impl.cxx b/Tests/RunCMake/CXXModules/sources/module-internal-part-impl.cxx
new file mode 100644
index 0000000..be77b0d
--- /dev/null
+++ b/Tests/RunCMake/CXXModules/sources/module-internal-part-impl.cxx
@@ -0,0 +1,11 @@
+#ifdef _MSC_VER
+// Only MSVC supports this pattern.
+module M : internal_part;
+#else
+module M;
+#endif
+
+int i()
+{
+ return 0;
+}