// Test the behavior of http://wg21.link/P0664, a proposal to catch any
// exceptions thrown after the initial suspend point of a coroutine by
// executing the handler specified by the promise type's 'unhandled_exception'
// member function.
//
// RUN: %clang_cc1 -no-opaque-pointers -std=c++20 \
// RUN: -triple=x86_64-unknown-linux-gnu -emit-llvm -o - %s \
// RUN: -fexceptions -fcxx-exceptions -disable-llvm-passes \
// RUN: | FileCheck %s
;
;
// CHECK-LABEL: define{{.*}} void @_Z1fv()
throwing_task
;
;
// CHECK-LABEL: define{{.*}} void @_Z1gv()
noexcept_task