blob: 94fe5396972143abc5d29d49509ac942b1662caa [file] [log] [blame]
; 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
}