summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-02-23 21:06:26 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-02-23 21:06:26 +0000
commit10ab78e854f2365aa695464c81946c831c6affbb (patch)
tree150dfdf22ad22ad67a7f89e5ab1f3e2262ba3ed7 /clang/test
parent456e7afbca427d795769c9e39a85c6d4ccb87986 (diff)
downloadbcm5719-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.cpp2
-rw-r--r--clang/test/Lexer/cxx2a_keyword_as_cxx17.cpp4
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}}
OpenPOWER on IntegriCloud