2 // RUN: split-file %s %t
4 // RUN: %clang_cc1 -verify -std=c++20 -fskip-odr-check-in-gmf -I. -emit-header-unit -xc++-user-header bz1.h
5 // RUN: %clang_cc1 -verify -std=c++20 -fskip-odr-check-in-gmf -I. -emit-header-unit -xc++-user-header bz2.h
6 // RUN: %clang_cc1 -verify -std=c++20 -fskip-odr-check-in-gmf -I. -emit-header-unit -xc++-user-header -fmodule-file=bz1.pcm -fmodule-file=bz2.pcm bz.cpp
12 template<typename _Tp
>
13 inline constexpr unsigned __cmp_cat_id
= 1;
15 template<typename
... _Ts
>
16 constexpr auto __common_cmp_cat() {
17 (__cmp_cat_id
<_Ts
> | ...);
20 } // namespace __detail
30 // expected-no-diagnostics
34 // expected-no-diagnostics
39 import
"bz1.h"; // expected-warning {{the implementation of header units is in an experimental phase}}
40 import
"bz2.h"; // expected-warning {{the implementation of header units is in an experimental phase}}