3 // 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 %t/b.cppm -fprebuilt-module-path=%t -emit-module-interface -o %t/b.pcm -verify
13 void operator &&(_Dom1 __v, _Dom1 __w)
22 template<typename... _Types>
25 static constexpr bool _S_copy_ctor =
26 (__is_trivial(_Types) && ...);
29 template<typename... _Types>
34 noexcept((__is_trivial(_Types) && ...))
42 // The operator&& defined in 'foo.h' will pollute the
43 // expression '__is_trivial(_Types) && ...' in bar.h
54 // expected-error@* {{has different definitions in different modules; first difference is defined here found data member '_S_copy_ctor' with an initializer}}
55 // expected-note@* {{but in 'a.<global>' found data member '_S_copy_ctor' with a different initializer}}
56 // expected-error@* {{from module 'a.<global>' is not present in definition of 'variant<_Types...>' provided earlier}}
57 // expected-note@* {{declaration of 'swap' does not match}}