Files
clang-p2996/clang/test/CXX/module/module.unit/p7/Inputs/m8.cppm
Chuanqi Xu 3504937dfb [C++20] [Modules] Don't create multiple global module fragment
Since the serialization code would recognize modules by names and the
name of all global module fragment is <global>, so that the
serialization code would complain for the same module.

This patch fixes this by using a unique global module fragment in Sema.
Before this patch, the compiler would fail on an assertion complaining
the duplicated modules.

Reviewed By: urnathan, rsmith

Differential Revision: https://reviews.llvm.org/D115610
2022-02-08 11:52:09 +08:00

8 lines
72 B
C++

module;
#include "h8.h"
export module m8;
extern "C++" {
void bar();
}