1 ; RUN: opt < %s -S -passes=rewrite-statepoints-for-gc | FileCheck %s
3 ; Basic test to make sure that safepoints are placed
8 define void @test_simple_call() gc "coreclr" {
9 ; CHECK-LABEL: test_simple_call
15 ; CHECK-NOT: gc.result
20 ; This function is inlined when inserting a poll. To avoid recursive
21 ; issues, make sure we don't place safepoints in it.
22 declare void @do_safepoint()
23 define void @gc.safepoint_poll() {
24 ; CHECK-LABEL: gc.safepoint_poll
26 ; CHECK-NEXT: do_safepoint
27 ; CHECK-NEXT: ret void
29 call void @do_safepoint()