1 ; Make sure that all library helper coro intrinsics are lowered.
2 ; RUN: opt < %s -passes='default<O0>' -S | FileCheck %s
4 ; CHECK-LABEL: @uses_library_support_coro_intrinsics(
5 ; CHECK-NOT: @llvm.coro
7 define void @uses_library_support_coro_intrinsics(ptr %hdl) {
9 call void @llvm.coro.resume(ptr %hdl)
10 call void @llvm.coro.destroy(ptr %hdl)
11 call i1 @llvm.coro.done(ptr %hdl)
15 declare void @llvm.coro.resume(ptr)
16 declare void @llvm.coro.destroy(ptr)
17 declare i1 @llvm.coro.done(ptr)