Files
clang-p2996/clang/test/CXX/module/module.unit/p7/t7.cpp
Chuanqi Xu 9791b58951 [C++20 Modules] Don't create global module fragment for extern linkage declaration in GMF already
Previously we would create global module fragment for extern linkage
declaration which is alreday in global module fragment. However, it is
clearly redundant to do so. This patch would check if the extern linkage
declaration are already in GMF before we create a GMF for it.
2021-12-09 13:55:15 +08:00

8 lines
157 B
C++

// RUN: rm -fr %t
// RUN: mkdir %t
// RUN: %clang_cc1 -std=c++20 -I%S/Inputs/ %s -verify
// expected-no-diagnostics
module;
#include "h7.h"
export module X;