1 ! RUN: bbc -emit-fir -o - %s | FileCheck %s
2 ! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
4 ! CHECK-LABEL: func @_QPfail_image_test
5 subroutine fail_image_test(fail
)
7 ! CHECK: cond_br {{.*}}, ^[[BB1:.*]], ^[[BB2:.*]]
10 ! CHECK: {{.*}} = fir.call @_FortranAFailImageStatement() {{.*}}: () -> none
11 ! CHECK-NEXT: fir.unreachable
15 ! CHECK-NEXT: br ^[[BB3:.*]]
16 ! CHECK-NEXT: ^[[BB3]]
20 ! CHECK-LABEL: func private @_FortranAFailImageStatement() -> none attributes {fir.runtime}