1 ; RUN: opt < %s -S -passes=place-safepoints | 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
11 ; CHECK: call void @do_safepoint
18 ; This function is inlined when inserting a poll. To avoid recursive
19 ; issues, make sure we don't place safepoints in it.
20 declare void @do_safepoint()
21 define void @gc.safepoint_poll() {
22 ; CHECK-LABEL: gc.safepoint_poll
24 ; CHECK-NEXT: do_safepoint
25 ; CHECK-NEXT: ret void
27 call void @do_safepoint()