15 lines · plain
1// Check that the compiler wouldn't crash due to inconsistent namesapce linkage2// RUN: rm -rf %t3// RUN: mkdir -p %t4// RUN: %clang_cc1 -x c++ -std=c++20 %S/Inputs/p2.cppm -emit-module-interface -o %t/Y.pcm5// RUN: %clang_cc1 -x c++ -std=c++20 -fprebuilt-module-path=%t -I%S/Inputs %s -fsyntax-only -verify6// expected-no-diagnostics7export module X;8import Y;9 10export namespace foo {11namespace bar {12void baz();13}14} // namespace foo15