Skip to content

Commit a0ce784

Browse files
committed
restore checks
1 parent ce3cbaf commit a0ce784

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

flang/test/Lower/derived-types.f90

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ subroutine derived_dummy(some_r, some_c2)
3333
subroutine local_derived()
3434
type(r) :: some_r
3535
type(c2) :: some_c2
36+
! CHECK-DAG: fir.alloca !fir.type<_QMdTc2{ch_array:!fir.array<20x30x!fir.char<1,10>>}>
37+
! CHECK-DAG: fir.alloca !fir.type<_QMdTr{x:f32}>
38+
print *, some_c2%ch_array(1,1)
39+
print *, some_r%x
3640
end subroutine
3741

3842
! CHECK-LABEL: func @_QMdPsaved_derived(

flang/test/Lower/do_loop_unstructured.f90

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,16 @@ subroutine nested_structured_in_unstructured()
235235
subroutine unstructured_do_concurrent
236236
logical :: success
237237
do concurrent (i=1:10) local(success)
238+
success = .false.
238239
error stop "fail"
239240
enddo
240241
end
241242
! CHECK-LABEL: func.func @_QPunstructured_do_concurrent
242243
! CHECK: %[[ITER_VAR:.*]] = fir.alloca i32
243-
244244
! CHECK: ^[[HEADER]]:
245245
! CHECK: %{{.*}} = fir.load %[[ITER_VAR]] : !fir.ref<i32>
246246
! CHECK: cf.cond_br %{{.*}}, ^[[BODY:.*]], ^[[EXIT:.*]]
247+
! CHECK: ^[[BODY]]:
248+
! CHECK-NEXT: %{{.*}} = fir.alloca !fir.logical<4> {bindc_name = "success", {{.*}}}
247249
! CHECK: ^[[EXIT]]:
248250
! CHECK: return

0 commit comments

Comments
 (0)