diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-12-01 02:13:10 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-12-01 02:13:10 +0000 |
commit | 8b606298160e388d7f4f8846bd11d983f2b16e95 (patch) | |
tree | 1f75760472942765d03861fd6e9bd86eaccb0786 /test/Lexer | |
parent | daf599b1b133881d3adb23304e08588dbd3f143a (diff) |
[c++2a] P0515R3: Support for overloaded operator<=>.
No CodeGen support for MSABI yet, we don't know how to mangle this there.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319513 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer')
-rw-r--r-- | test/Lexer/cxx2a-spaceship.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Lexer/cxx2a-spaceship.cpp b/test/Lexer/cxx2a-spaceship.cpp index f407937c4e..604575ee97 100644 --- a/test/Lexer/cxx2a-spaceship.cpp +++ b/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}} |