cmake/Tests/RunCMake/CXXModules/sources/module-part-impl.cxx

14 lines
142 B
C++
Raw Normal View History

2022-11-16 20:14:03 +01:00
#ifdef _MSC_VER
// Only MSVC supports this pattern.
2023-05-23 16:38:00 +02:00
module M:part;
2022-11-16 20:14:03 +01:00
#else
module M;
#endif
2023-05-23 16:38:00 +02:00
import M:internal_part;
2022-11-16 20:14:03 +01:00
int p()
{
return i();
}