1 ; RUN: opt -S -passes=verify < %s | FileCheck %s
3 target triple = "x86_64-unknown-linux-gnu"
5 define void @foo() gc "statepoint_example" personality ptr @P {
6 ; CHECK-NOT: gc.result operand #1 must be from a statepoint
15 %call = call noundef i32 @llvm.experimental.gc.result.i32(token poison)
19 declare i32 @llvm.experimental.gc.result.i32(token)