File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
clang/test/CXX/class/class.compare/class.compare.default Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ namespace N {
25
25
26
26
constexpr std::strong_ordering operator <=>(const A&, const A&) noexcept ;
27
27
constexpr std::strong_ordering (*test_a_threeway)(const A&, const A&) = &operator<=>;
28
- static_assert ((*test_a_threeway)(A(), A())); // expected-error {{static assertion expression is not an integral constant expression}}
28
+ static_assert (! (*test_a_threeway)(A(), A())); // expected-error {{static assertion expression is not an integral constant expression}}
29
29
// expected-note@-1 {{undefined function 'operator<=>' cannot be used in a constant expression}}
30
30
31
31
constexpr bool (*test_a_equal_not_found)(const A&, const A&) = &operator==; // expected-error {{undeclared}}
You can’t perform that action at this time.
0 commit comments