hanchenye-llvm-project/clang/test/CodeGenCoroutines
Brian Gesiak ea9144e818 [Coroutines] Catch exceptions in await_resume
Summary:
http://wg21.link/P0664r2 section "Evolution/Core Issues 24" describes a
proposed change to Coroutines TS that would have any exceptions thrown
after the initial suspend point of a coroutine be caught by the handler
specified by the promise type's 'unhandled_exception' member function.
This commit provides a sample implementation of the specified behavior.

Test Plan: `check-clang`

Reviewers: GorNishanov, EricWF

Reviewed By: GorNishanov

Subscribers: cfe-commits, lewissbaker, eric_niebler

Differential Revision: https://reviews.llvm.org/D45860

llvm-svn: 331519
2018-05-04 14:02:37 +00:00
..
Inputs
coro-alloc.cpp [Coroutines] Find custom allocators in class scope 2018-04-01 22:59:22 +00:00
coro-await-domination.cpp
coro-await-resume-eh.cpp [Coroutines] Catch exceptions in await_resume 2018-05-04 14:02:37 +00:00
coro-await.cpp
coro-builtins-err.c
coro-builtins.c [coroutines] Add __builtin_coro_noop => llvm.coro.noop 2018-04-02 17:35:37 +00:00
coro-cleanup.cpp
coro-dest-slot.cpp
coro-eh-cleanup.cpp [MS] Don't escape MS C++ names with \01 2018-03-16 20:36:49 +00:00
coro-gro-nrvo.cpp [Coroutines] Use allocator overload when available 2018-02-15 20:37:22 +00:00
coro-gro.cpp
coro-lambda.cpp
coro-params.cpp [Coroutines] Use allocator overload when available 2018-02-15 20:37:22 +00:00
coro-promise-dtor.cpp [MS] Don't escape MS C++ names with \01 2018-03-16 20:36:49 +00:00
coro-ret-void.cpp
coro-return.cpp
coro-unhandled-exception.cpp [Coroutines] Catch exceptions in await_resume 2018-05-04 14:02:37 +00:00
microsoft-abi-operator-coawait.cpp [MS] Don't escape MS C++ names with \01 2018-03-16 20:36:49 +00:00