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.
8 lines
157 B
C++
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;
|