! RUN: %flang_fc1 -fopenmp -emit-hlfir -o - %s | FileCheck %s subroutine depend_complex(z) ! CHECK-LABEL: func.func @_QPdepend_complex( ! CHECK-SAME: %[[ARG0:.*]]: !fir.ref> {fir.bindc_name = "z"}) { complex :: z ! CHECK: %[[VAL_0:.*]] = fir.dummy_scope : !fir.dscope ! CHECK: %[[VAL_1:.*]]:2 = hlfir.declare %[[ARG0]] dummy_scope %[[VAL_0]] arg {{[0-9]+}} {uniq_name = "_QFdepend_complexEz"} : (!fir.ref>, !fir.dscope) -> (!fir.ref>, !fir.ref>) !$omp task depend(in:z%re) ! CHECK: %[[VAL_2:.*]] = hlfir.designate %[[VAL_1]]#0 real : (!fir.ref>) -> !fir.ref ! CHECK: omp.task depend(taskdependin -> %[[VAL_2]] : !fir.ref) { ! CHECK: omp.terminator ! CHECK: } !$omp end task !$omp task depend(in:z%im) ! CHECK: %[[VAL_3:.*]] = hlfir.designate %[[VAL_1]]#0 imag : (!fir.ref>) -> !fir.ref ! CHECK: omp.task depend(taskdependin -> %[[VAL_3]] : !fir.ref) { ! CHECK: omp.terminator ! CHECK: } !$omp end task end subroutine