1// Check that the compiler wouldn't crash due to inconsistent namesapce linkage
2// RUN: rm -rf %t
3// RUN: mkdir -p %t
4// RUN: %clang -std=c++20 %S/Inputs/p2.cppm --precompile -o %t/Y.pcm
5// RUN: %clang -std=c++20 -fprebuilt-module-path=%t -I%S/Inputs %s -c -Xclang -verify
6// expected-no-diagnostics
7export module X;
8import Y;
9
10export namespace foo {
11namespace bar {
12void baz();
13}
14} // namespace foo
15