
Close https://github.com/llvm/llvm-project/issues/61360 Close https://github.com/llvm/llvm-project/issues/129525 Close https://github.com/llvm/llvm-project/issues/143734 We shouldn't identify different module local decls in different modules as the same entity.
26 lines
449 B
C++
26 lines
449 B
C++
// RUN: rm -rf %t
|
|
// RUN: mkdir -p %t
|
|
// RUN: split-file %s %t
|
|
//
|
|
// RUN: %clang_cc1 -std=c++20 %t/A.cppm -emit-module-interface -o %t/A.pcm
|
|
// RUN: %clang_cc1 -std=c++20 %t/B.cppm -fprebuilt-module-path=%t -emit-llvm -o %t/B.ll
|
|
|
|
//--- A.cppm
|
|
export module A;
|
|
export template<typename>
|
|
struct holder {
|
|
};
|
|
|
|
struct a {
|
|
holder<struct foo> m;
|
|
};
|
|
|
|
//--- B.cppm
|
|
// expected-no-diagnostics
|
|
export module B;
|
|
import A;
|
|
|
|
struct b {
|
|
holder<struct foo> m;
|
|
};
|