]> granicus.if.org Git - clang/commit
[coroutines] [NFC] Add tests for return_void, unhandled_exception and promise dtor
authorGor Nishanov <GorNishanov@gmail.com>
Wed, 24 May 2017 14:19:48 +0000 (14:19 +0000)
committerGor Nishanov <GorNishanov@gmail.com>
Wed, 24 May 2017 14:19:48 +0000 (14:19 +0000)
commita7e2c9183f726ecd89bcf31736082dce3209f546
tree011123b4a168dbf9ba2472687576d39b62ae8b82
parent59a0553fd263be69fb099368fc021f38861a23d6
[coroutines] [NFC] Add tests for return_void, unhandled_exception and promise dtor

Summary:
* Test that coroutine promise destructor is called.
* Test that we call return_void on fallthrough
* Test that we call unhandled exception in a try catch surrounding the body

Reviewers: EricWF, GorNishanov

Reviewed By: GorNishanov

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303748 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGenCoroutines/Inputs/coroutine.h [new file with mode: 0644]
test/CodeGenCoroutines/coro-promise-dtor.cpp [new file with mode: 0644]
test/CodeGenCoroutines/coro-ret-void.cpp [new file with mode: 0644]
test/CodeGenCoroutines/coro-unhandled-exception.cpp [new file with mode: 0644]