Debian Codegraph @

clang/test/CXX/basic/basic.namespace/basic.namespace.general/p2.cppm

raw
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
7 export module X;
8 import Y;
9
10 export namespace foo {
11 namespace bar {
12 void baz();
13 }
14 } // namespace foo