diff options
author | Eric Fiselier <eric@efcs.ca> | 2017-04-17 23:28:02 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2017-04-17 23:28:02 +0000 |
commit | b1515354484bc6230c06de87645062cd9ac8ccb2 (patch) | |
tree | f85512e7312906a97e6bfe91844c6e47782ac3ce /test/CodeGenCoroutines | |
parent | bf2068e4b947c50a6b163978abdfc9426f4dd284 (diff) |
Rename coroutine warning when unhandled_exception() is missing
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300513 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCoroutines')
-rw-r--r-- | test/CodeGenCoroutines/coro-alloc.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/CodeGenCoroutines/coro-alloc.cpp b/test/CodeGenCoroutines/coro-alloc.cpp index f0a600eabe..7ff57faeaf 100644 --- a/test/CodeGenCoroutines/coro-alloc.cpp +++ b/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() {} |