160f82666SChuanqi Xu// Check that the compiler wouldn't crash due to inconsistent namesapce linkage 260f82666SChuanqi Xu// RUN: rm -rf %t 360f82666SChuanqi Xu// RUN: mkdir -p %t 4*9effb6f8SChuanqi Xu// RUN: %clang_cc1 -x c++ -std=c++20 %S/Inputs/p2.cppm -emit-module-interface -o %t/Y.pcm 5*9effb6f8SChuanqi Xu// RUN: %clang_cc1 -x c++ -std=c++20 -fprebuilt-module-path=%t -I%S/Inputs %s -fsyntax-only -verify 660f82666SChuanqi Xu// expected-no-diagnostics 760f82666SChuanqi Xuexport module X; 860f82666SChuanqi Xuimport Y; 960f82666SChuanqi Xu 1060f82666SChuanqi Xuexport namespace foo { 1160f82666SChuanqi Xunamespace bar { 1260f82666SChuanqi Xuvoid baz(); 1360f82666SChuanqi Xu} 149db81628SChuanqi Xu} // namespace foo 15