[coroutines] Add end-to-end tests within libc++
authorEric Fiselier <eric@efcs.ca>
Sun, 28 May 2017 19:38:21 +0000 (19:38 +0000)
committerEric Fiselier <eric@efcs.ca>
Sun, 28 May 2017 19:38:21 +0000 (19:38 +0000)
commitc34a497b407ebb65e6d8c582ba5fe1c45cc88958
treefc02355a28f42a8cf7fa9551793ff73a7b79d07f
parentcf09175de8a7930428cd5e16ead278c5289cbd3e
[coroutines] Add end-to-end tests within libc++

This patch adds end-to-end/breathing tests for coroutines
into libc++. The tests aren't specifically to test libc++ requirements
but instead are intented to ensure coroutines are working fine in general.

Although libc++ isn't exactly the most correct place for these tests
to live, there is one major advantage. The libc++ test suite is also
used by MSVC and by adding the tests here it ensures they will be
run against all currently available coroutine implementations.

llvm-svn: 304101
libcxx/test/std/experimental/language.support/support.coroutines/end.to.end/await_result.sh.cpp [new file with mode: 0644]
libcxx/test/std/experimental/language.support/support.coroutines/end.to.end/bool_await_suspend.sh.cpp [new file with mode: 0644]
libcxx/test/std/experimental/language.support/support.coroutines/end.to.end/expected.sh.cpp [new file with mode: 0644]
libcxx/test/std/experimental/language.support/support.coroutines/end.to.end/fullexpr-dtor.sh.cpp [new file with mode: 0644]
libcxx/test/std/experimental/language.support/support.coroutines/end.to.end/generator.sh.cpp [new file with mode: 0644]
libcxx/test/std/experimental/language.support/support.coroutines/end.to.end/go.sh.cpp [new file with mode: 0644]
libcxx/test/std/experimental/language.support/support.coroutines/end.to.end/multishot_func.sh.cpp [new file with mode: 0644]
libcxx/test/std/experimental/language.support/support.coroutines/end.to.end/oneshot_func.sh.cpp [new file with mode: 0644]
libcxx/test/support/coroutine_types.h [new file with mode: 0644]