summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCoroutines/coro-alloc.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2017-04-17 23:28:02 +0000
committerEric Fiselier <eric@efcs.ca>2017-04-17 23:28:02 +0000
commita9b3d0975af225794fbfb9349d271d67670a8d19 (patch)
treefe337c66aab1b096777ee60fc0d2a8a3494dc488 /clang/test/CodeGenCoroutines/coro-alloc.cpp
parent1781d6f732684fa4c1539082cd8f59c44720a377 (diff)
downloadbcm5719-llvm-a9b3d0975af225794fbfb9349d271d67670a8d19.tar.gz
bcm5719-llvm-a9b3d0975af225794fbfb9349d271d67670a8d19.zip
Rename coroutine warning when unhandled_exception() is missing
llvm-svn: 300513
Diffstat (limited to 'clang/test/CodeGenCoroutines/coro-alloc.cpp')
-rw-r--r--clang/test/CodeGenCoroutines/coro-alloc.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/CodeGenCoroutines/coro-alloc.cpp b/clang/test/CodeGenCoroutines/coro-alloc.cpp
index f0a600eabe9..7ff57faeafb 100644
--- a/clang/test/CodeGenCoroutines/coro-alloc.cpp
+++ b/clang/test/CodeGenCoroutines/coro-alloc.cpp
@@ -1,4 +1,6 @@
-// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fcoroutines-ts -std=c++14 -emit-llvm %s -o - -disable-llvm-passes | FileCheck %s
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fcoroutines-ts -std=c++14 \
+// RUN: -Wno-coroutine-missing-unhandled-exception -emit-llvm %s -o - -disable-llvm-passes \
+// RUN: | FileCheck %s
namespace std {
namespace experimental {
@@ -133,7 +135,7 @@ struct promise_on_alloc_failure_tag {};
template<>
struct std::experimental::coroutine_traits<int, promise_on_alloc_failure_tag> {
struct promise_type {
- int get_return_object() {}
+ int get_return_object() { return 0; }
suspend_always initial_suspend() { return {}; }
suspend_always final_suspend() { return {}; }
void return_void() {}
OpenPOWER on IntegriCloud