mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 00:11:07 -06:00
Tests: Fix RunCMake.CXXModules compilation with Clang 21
Clang 21 now enforces placement of the module declaration:
.../scan_properties/module.cxx:7:8: error: module
declaration must occur at the start of the translation unit
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
export module M;
|
||||
|
||||
#if SCANNING_CONTROL
|
||||
# ifndef CMAKE_SCANNED_THIS_SOURCE
|
||||
# error "This file should have been scanned"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
export module M;
|
||||
|
||||
export int from_module()
|
||||
{
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user