aboutsummaryrefslogtreecommitdiffstats
path: root/test/std/experimental/language.support/support.coroutines/end.to.end/oneshot_func.pass.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-06-03 15:21:10 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-06-03 15:21:10 +0000
commit7c5c4ef25000522f341d2edb21344a2fe2b881ad (patch)
tree2c5bc68012e6f7b4339698779427ad5ae81c0360 /test/std/experimental/language.support/support.coroutines/end.to.end/oneshot_func.pass.cpp
parentedb11085302f80f38c9d976f003aa1c9002c7abb (diff)
downloadsrc-7c5c4ef25000522f341d2edb21344a2fe2b881ad.tar.gz
src-7c5c4ef25000522f341d2edb21344a2fe2b881ad.zip
Vendor import of libc++ trunk r304659:vendor/libc++/libc++-trunk-r304659
Notes
Notes: svn path=/vendor/libc++/dist/; revision=319529 svn path=/vendor/libc++/libc++-trunk-r304659/; revision=319530; tag=vendor/libc++/libc++-trunk-r304659
Diffstat (limited to 'test/std/experimental/language.support/support.coroutines/end.to.end/oneshot_func.pass.cpp')
-rw-r--r--test/std/experimental/language.support/support.coroutines/end.to.end/oneshot_func.pass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/std/experimental/language.support/support.coroutines/end.to.end/oneshot_func.pass.cpp b/test/std/experimental/language.support/support.coroutines/end.to.end/oneshot_func.pass.cpp
index d5f2c40e2a79..ae0a950dc686 100644
--- a/test/std/experimental/language.support/support.coroutines/end.to.end/oneshot_func.pass.cpp
+++ b/test/std/experimental/language.support/support.coroutines/end.to.end/oneshot_func.pass.cpp
@@ -68,10 +68,10 @@ private:
std::vector<int> yielded_values = {};
int yield(int x) { yielded_values.push_back(x); return x + 1; }
-float fyield(int x) { yielded_values.push_back(x); return x + 2; }
+float fyield(int x) { yielded_values.push_back(x); return static_cast<float>(x + 2); }
void Do1(func<int> f) { yield(f()); }
-void Do2(func<double> f) { yield(f()); }
+void Do2(func<double> f) { yield(static_cast<int>(f())); }
int main() {
Do1([] { return yield(43); });