1 ! Test use defined operators/assignment
2 ! RUN: bbc -emit-fir %s -o - | FileCheck %s
4 ! Test user defined assignment
5 ! CHECK-LABEL: func @_QPuser_assignment(
6 ! CHECK-SAME: %[[arg0:.*]]: !fir.ref<!fir.type<{{.*}}>>{{.*}}, %[[arg1:.*]]: !fir.ref<i32>{{.*}}) {
7 subroutine user_assignment(a
, i
)
12 interface assignment(=)
13 subroutine my_assign(b
, j
)
15 type(t
), INTENT(OUT
) :: b
16 integer, INTENT(IN
) :: j
20 ! CHECK: fir.call @_QPmy_assign(%[[arg0]], %[[arg1]])