File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 1- ! RUN: bbc %s -emit-fir --canonicalize -o - | FileCheck %s
1+ ! RUN: bbc %s -emit-fir -hlfir=false - -canonicalize -o - | FileCheck %s
22
33! CHECK-LABEL: pause_test
44subroutine pause_test ()
55 ! CHECK: fir.call @_Fortran{{.*}}PauseStatement()
66 ! CHECK-NEXT: return
77 pause
88end subroutine
9+
10+ ! CHECK-LABEL: pause_code
11+ subroutine pause_code ()
12+ pause 42
13+ ! CHECK: fir.call @_Fortran{{.*}}PauseStatement
14+ ! CHECK-NEXT: return
15+ end subroutine
16+
17+ ! CHECK-LABEL: pause_msg
18+ subroutine pause_msg ()
19+ pause " hello"
20+ ! CHECK-DAG: %[[five:.*]] = arith.constant 5 : index
21+ ! CHECK-DAG: %[[lit:.*]] = fir.address_of(@_QQ{{.*}}) : !fir.ref<!fir.char<1,5>>
22+ ! CHECK-DAG: %[[buff:.*]] = fir.convert %[[lit]] : (!fir.ref<!fir.char<1,5>>) -> !fir.ref<i8>
23+ ! CHECK-DAG: %[[len:.*]] = fir.convert %[[five]] : (index) -> i64
24+ ! CHECK: fir.call @_Fortran{{.*}}PauseStatementText(%[[buff]], %[[len]])
25+ ! CHECK-NEXT: return
26+ end subroutine
27+
28+ ! CHECK-DAG: func private @_Fortran{{.*}}PauseStatement
29+ ! CHECK-DAG: func private @_Fortran{{.*}}PauseStatementText
You can’t perform that action at this time.
0 commit comments