| 1 |
! RUN: bbc -emit-hlfir %s -o - | FileCheck %s |
| 2 |
|
| 3 |
pure subroutine sub1() |
| 4 |
end |
| 5 |
|
| 6 |
! CHECK: func.func @_QPsub1() attributes {fir.func_pure} |
| 7 |
|
| 8 |
elemental subroutine sub2() |
| 9 |
end |
| 10 |
|
| 11 |
! CHECK: func.func @_QPsub2() attributes {fir.func_elemental, fir.func_pure} |
| 12 |
|
| 13 |
recursive subroutine sub3() |
| 14 |
end |
| 15 |
|
| 16 |
! CHECK: func.func @_QPsub3() attributes {fir.func_recursive} |
| 17 |
|
| 18 |
pure function fct1() |
| 19 |
end |
| 20 |
|
| 21 |
! CHECK: func.func @_QPfct1() -> f32 attributes {fir.func_pure} |
| 22 |
|
| 23 |
elemental function fct2() |
| 24 |
end |
| 25 |
|
| 26 |
! CHECK: func.func @_QPfct2() -> f32 attributes {fir.func_elemental, fir.func_pure} |
| 27 |
|
| 28 |
recursive function fct3() |
| 29 |
end |
| 30 |
|
| 31 |
! CHECK: func.func @_QPfct3() -> f32 attributes {fir.func_recursive} |