3 // RUN: split-file %s %t
5 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/lib.cppm -o %t/lib.pcm
6 // RUN: %clang_cc1 -std=c++20 %t/main.cpp -fmodule-file=lib=%t/lib.pcm \
7 // RUN: -verify -fsyntax-only
10 namespace lib::inline __1 {
12 inline constexpr bool test = false;
14 constexpr bool func() {
17 inline constexpr bool non_templ = true;
25 export namespace lib {
32 // expected-no-diagnostics
38 inline constexpr bool lib::test<foo> = true;
41 constexpr bool lib::func<foo>() {
45 static_assert(lib::test<foo>);
46 static_assert(lib::func<foo>());