; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
; Tests that coro-split correctly invalidate bad coroutines
; RUN: opt < %s -passes='cgscc(coro-split)' -S | FileCheck %s

define void @pr156444() presplitcoroutine {
; CHECK-LABEL: define void @pr156444(
; CHECK-SAME: ) #[[ATTR0:[0-9]+]] {
; CHECK-NEXT:  [[ENTRY:.*:]]
; CHECK-NEXT:    ret void
;
entry:
  %0 = call i8 @llvm.coro.suspend(token none, i1 false)
  ret void
}
