summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/cxx2a-spaceship.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Lexer/cxx2a-spaceship.cpp')
-rw-r--r--clang/test/Lexer/cxx2a-spaceship.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Lexer/cxx2a-spaceship.cpp b/clang/test/Lexer/cxx2a-spaceship.cpp
index f407937c4e3..604575ee976 100644
--- a/clang/test/Lexer/cxx2a-spaceship.cpp
+++ b/clang/test/Lexer/cxx2a-spaceship.cpp
@@ -10,7 +10,7 @@ namespace N {
struct A {};
void operator<=(A, A);
#if __cplusplus > 201703L
-void operator<=>(A, A); // expected-error {{}}
+void operator<=>(A, A);
#ifdef COMPAT
// expected-warning@-2 {{'<=>' operator is incompatible with C++ standards before C++2a}}
#endif
@@ -21,7 +21,7 @@ X<operator<=>
#if __cplusplus <= 201703L
// expected-warning@-2 {{'<=>' is a single token in C++2a; add a space to avoid a change in behavior}}
#else
- > // expected-error@-4 {{}}
+ >
#endif
#ifdef COMPAT
// expected-warning@-7 {{'<=>' operator is incompatible with C++ standards before C++2a}}
OpenPOWER on IntegriCloud