================ @@ -1,14 +1,17 @@ -// Test -mloadtime-comment-vars= across a C++20 named-module boundary. Five +// Test -mloadtime-comment-vars= across a C++20 named-module boundary. Six // scenarios, each named by its FileCheck or -verify prefix: // // MOD — the module unit is built to a BMI with the option and then // compiled to IR from the BMI (the two-phase flow build systems -// use). Exported, module-linkage, internal-linkage, and inline +// use). Exported, module-linkage, and internal-linkage // variables are all preserved: the implicit attribute is -// serialized, and the internal and inline variables reach -// CodeGen via the module-initializer list. The same IR is -// produced whether or not the option is repeated on the -// codegen step: the BMI already records the result. +// serialized, and the internal variable reaches CodeGen via +// the module-initializer list. The same IR is produced whether +// or not the option is repeated on the codegen step: the BMI +// already records the result. The name-matched inline variable +// is not preserved and, being unreferenced, is not emitted. +// inline — the name-matched inline variable is diagnosed when the +// module unit is compiled. ---------------- hubert-reinterpretcast wrote:
This seems to be covered in `Sema/loadtime-comment-vars.cpp`. https://github.com/llvm/llvm-project/pull/187986 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
