2 // RUN: split-file %s %t
5 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/A.cppm -o %t/A.pcm
6 // RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/Use.cpp -fsyntax-only -verify
8 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/A.cppm -o %t/A.pcm
9 // RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/Use.cpp -fsyntax-only -verify
12 template<typename T, typename U>
13 inline constexpr bool IsSame = false;
16 inline constexpr bool IsSame<T, T> = true;
22 ~A() noexcept(IsSame<T, T>);
33 void bool_consume(bool b);
36 bool_consume(IsSame); // expected-error {{use of undeclared identifier 'IsSame'}}