aboutsummaryrefslogtreecommitdiffstats
path: root/test/std/experimental/language.support/support.coroutines/end.to.end
diff options
context:
space:
mode:
Diffstat (limited to 'test/std/experimental/language.support/support.coroutines/end.to.end')
-rw-r--r--test/std/experimental/language.support/support.coroutines/end.to.end/await_result.pass.cpp4
-rw-r--r--test/std/experimental/language.support/support.coroutines/end.to.end/bool_await_suspend.pass.cpp5
-rw-r--r--test/std/experimental/language.support/support.coroutines/end.to.end/generator.pass.cpp3
-rw-r--r--test/std/experimental/language.support/support.coroutines/end.to.end/oneshot_func.pass.cpp4
4 files changed, 11 insertions, 5 deletions
diff --git a/test/std/experimental/language.support/support.coroutines/end.to.end/await_result.pass.cpp b/test/std/experimental/language.support/support.coroutines/end.to.end/await_result.pass.cpp
index 769a825df001..b8606317ae56 100644
--- a/test/std/experimental/language.support/support.coroutines/end.to.end/await_result.pass.cpp
+++ b/test/std/experimental/language.support/support.coroutines/end.to.end/await_result.pass.cpp
@@ -23,7 +23,7 @@ struct coro_t {
}
suspend_never initial_suspend() { return {}; }
suspend_never final_suspend() { return {}; }
- void return_void(){}
+ void return_void() {}
static void unhandled_exception() {}
};
};
@@ -37,7 +37,7 @@ struct B {
struct A {
- ~A(){}
+ ~A() {}
bool await_ready() { return true; }
int await_resume() { return 42; }
template <typename F> void await_suspend(F) {}
diff --git a/test/std/experimental/language.support/support.coroutines/end.to.end/bool_await_suspend.pass.cpp b/test/std/experimental/language.support/support.coroutines/end.to.end/bool_await_suspend.pass.cpp
index 9c3becffc0ac..12ab92ff3004 100644
--- a/test/std/experimental/language.support/support.coroutines/end.to.end/bool_await_suspend.pass.cpp
+++ b/test/std/experimental/language.support/support.coroutines/end.to.end/bool_await_suspend.pass.cpp
@@ -10,6 +10,9 @@
// UNSUPPORTED: c++98, c++03, c++11
+// See https://bugs.llvm.org/show_bug.cgi?id=33271
+// UNSUPPORTED: ubsan
+
#include <experimental/coroutine>
#include <cassert>
@@ -22,7 +25,7 @@ struct coro_t {
}
suspend_never initial_suspend() { return {}; }
suspend_never final_suspend() { return {}; }
- void return_void(){}
+ void return_void() {}
void unhandled_exception() {}
};
coro_t(coroutine_handle<promise_type> hh) : h(hh) {}
diff --git a/test/std/experimental/language.support/support.coroutines/end.to.end/generator.pass.cpp b/test/std/experimental/language.support/support.coroutines/end.to.end/generator.pass.cpp
index 9200fae91576..c92e26184ff6 100644
--- a/test/std/experimental/language.support/support.coroutines/end.to.end/generator.pass.cpp
+++ b/test/std/experimental/language.support/support.coroutines/end.to.end/generator.pass.cpp
@@ -10,6 +10,9 @@
// UNSUPPORTED: c++98, c++03, c++11
+// See https://bugs.llvm.org/show_bug.cgi?id=33271
+// UNSUPPORTED: ubsan
+
#include <experimental/coroutine>
#include <vector>
#include <cassert>
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); });