diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-02-23 21:06:26 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-02-23 21:06:26 +0000 |
| commit | 10ab78e854f2365aa695464c81946c831c6affbb (patch) | |
| tree | 150dfdf22ad22ad67a7f89e5ab1f3e2262ba3ed7 /clang/test | |
| parent | 456e7afbca427d795769c9e39a85c6d4ccb87986 (diff) | |
| download | bcm5719-llvm-10ab78e854f2365aa695464c81946c831c6affbb.tar.gz bcm5719-llvm-10ab78e854f2365aa695464c81946c831c6affbb.zip | |
Enable coroutines under -std=c++2a.
llvm-svn: 354736
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Lexer/cxx-features.cpp | 2 | ||||
| -rw-r--r-- | clang/test/Lexer/cxx2a_keyword_as_cxx17.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/clang/test/Lexer/cxx-features.cpp b/clang/test/Lexer/cxx-features.cpp index 706a02fc8a6..75d6e0aa14d 100644 --- a/clang/test/Lexer/cxx-features.cpp +++ b/clang/test/Lexer/cxx-features.cpp @@ -271,6 +271,6 @@ #error "wrong value for __cpp_experimental_concepts" #endif -#if defined(COROUTINES) ? check(coroutines, 201703L, 201703L, 201703L, 201703L, 201703L) : check(coroutines, 0, 0, 0, 0, 0) +#if defined(COROUTINES) ? check(coroutines, 201703L, 201703L, 201703L, 201703L, 201703L) : check(coroutines, 0, 0, 0, 0, 201703L) #error "wrong value for __cpp_coroutines" #endif diff --git a/clang/test/Lexer/cxx2a_keyword_as_cxx17.cpp b/clang/test/Lexer/cxx2a_keyword_as_cxx17.cpp index c6a821be0ea..d2ed7d33803 100644 --- a/clang/test/Lexer/cxx2a_keyword_as_cxx17.cpp +++ b/clang/test/Lexer/cxx2a_keyword_as_cxx17.cpp @@ -5,5 +5,9 @@ template<typename T> concept x = 0; #undef concept +int co_await = 0; // expected-warning {{'co_await' is a keyword in C++2a}} +int co_return = 0; // expected-warning {{'co_return' is a keyword in C++2a}} +int co_yield = 0; // expected-warning {{'co_yield' is a keyword in C++2a}} +int char8_t = 0; // expected-warning {{'char8_t' is a keyword in C++2a}} int concept = 0; // expected-warning {{'concept' is a keyword in C++2a}} int requires = 0; // expected-warning {{'requires' is a keyword in C++2a}} |

