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_cc1 -x c++ -std=c++20 %S/Inputs/p2.cppm -emit-module-interface -o %t/Y.pcm 5// RUN: %clang_cc1 -x c++ -std=c++20 -fprebuilt-module-path=%t -I%S/Inputs %s -fsyntax-only -verify 6// expected-no-diagnostics 7export module X; 8import Y; 9 10export namespace foo { 11namespace bar { 12void baz(); 13} 14} // namespace foo 15