// RUN: %clang_cc1 -std=c++2a -verify %s -Wzero-as-null-pointer-constant
// Keep this test before any declarations of operator<=>.
;
constexpr int operator<=>
static_assert;
int operator<=>; // expected-error {{overloaded 'operator<=>' must have at least one parameter of class or enumeration type}}
int operator<=>; // expected-error {{overloaded 'operator<=>' must be a binary operator}}
int operator<=>; // expected-error {{overloaded 'operator<=>' must have at least one parameter of class or enumeration type}}
int operator<=>; // expected-error {{overloaded 'operator<=>' must be a binary operator}}
int operator<=>; // expected-error {{overloaded 'operator<=>' cannot be variadic}}
int operator<=>; // expected-error {{parameter of overloaded 'operator<=>' cannot have a default argument}}
;
int &r = .operator<=>;