Skip to content

Commit 7b69084

Browse files
committed
[FOLD] fix test
1 parent caa3790 commit 7b69084

File tree

1 file changed

+1
-1
lines changed
  • clang/test/CXX/class/class.compare/class.compare.default

1 file changed

+1
-1
lines changed

clang/test/CXX/class/class.compare/class.compare.default/p4.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace N {
2525

2626
constexpr std::strong_ordering operator<=>(const A&, const A&) noexcept;
2727
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}}
2929
// expected-note@-1 {{undefined function 'operator<=>' cannot be used in a constant expression}}
3030

3131
constexpr bool (*test_a_equal_not_found)(const A&, const A&) = &operator==; // expected-error {{undeclared}}

0 commit comments

Comments
 (0)