1 // RUN: %clang_analyze_cc1 -std=c++20 -w -analyzer-checker=core -verify %s
3 // expected-no-diagnostics
6 struct strong_ordering
{
8 constexpr operator int() const { return n
; }
9 static const strong_ordering equal
, greater
, less
;
11 constexpr strong_ordering
strong_ordering::equal
= {0};
12 constexpr strong_ordering
strong_ordering::greater
= {1};
13 constexpr strong_ordering
strong_ordering::less
= {-1};