summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx1z-coroutines.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-11-22 02:57:17 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-11-22 02:57:17 +0000
commitd7bed4d6608fe4ce783676f38aabbeaf1a080763 (patch)
treeb6d2d96e380173946961a0925c3eda9300c506a8 /clang/test/Parser/cxx1z-coroutines.cpp
parent7b948a77928bc06e9a1099fdc001e9c5d946d392 (diff)
downloadbcm5719-llvm-d7bed4d6608fe4ce783676f38aabbeaf1a080763.tar.gz
bcm5719-llvm-d7bed4d6608fe4ce783676f38aabbeaf1a080763.zip
[coroutines] Factor out co_await representation into common base class for co_await and co_yield, and use it to hold await_* calls.
llvm-svn: 253811
Diffstat (limited to 'clang/test/Parser/cxx1z-coroutines.cpp')
-rw-r--r--clang/test/Parser/cxx1z-coroutines.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Parser/cxx1z-coroutines.cpp b/clang/test/Parser/cxx1z-coroutines.cpp
index 1ea2635aace..3e698404a60 100644
--- a/clang/test/Parser/cxx1z-coroutines.cpp
+++ b/clang/test/Parser/cxx1z-coroutines.cpp
@@ -9,7 +9,7 @@ U f(T t) {
1 + co_yield t; // expected-error {{expected expression}}
auto x = co_await t;
- auto y = co_yield t; // expected-error {{void}} FIXME
+ auto y = co_yield t;
for co_await (int x : t) {}
for co_await (int x = 0; x != 10; ++x) {} // expected-error {{'co_await' modifier can only be applied to range-based for loop}}
OpenPOWER on IntegriCloud