12 lines · cpp
1// Based on C++20 10.2 example 6.2 3// RUN: %clang_cc1 -std=c++20 -emit-module-interface %s -verify -o %t4 5// expected-no-diagnostics6 7export module M;8export namespace N {9int x; // OK10static_assert(1 == 1); // No diagnostic after P2615R1 DR11} // namespace N12