1 // RUN: %clang_cc1 -pedantic-errors -std=c++2a -emit-pch %s -o %t
2 // RUN: %clang_cc1 -pedantic-errors -std=c++2a -include-pch %t -verify %s
3 // RUN: %clang_cc1 -pedantic-errors -std=c++2a -include-pch %t -emit-llvm %s -o -
9 #include "Inputs/std-compare.h"
10 constexpr auto foo() {
14 inline auto bar(int x
) {
20 friend constexpr std::strong_ordering
operator<=>(const X
&x
, const X
&y
) {
24 constexpr auto baz(int x
) {
30 // expected-no-diagnostics
32 static_assert(foo() < 0);
38 static_assert(!baz(3));
39 static_assert(baz(4));