[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / flang / test / Lower / variable.f90
blob76d4a26838bf7f093778b72997d2931f041dbbe0
1 ! RUN: bbc -emit-fir %s -o - | FileCheck %s
3 ! CHECK-LABEL: func @_QPs() {
4 subroutine s
5 ! CHECK-DAG: fir.alloca !fir.box<!fir.heap<i32>> {{{.*}}uniq_name = "{{.*}}Eally"}
6 integer, allocatable :: ally
7 ! CHECK-DAG: fir.alloca !fir.box<!fir.ptr<i32>> {{{.*}}uniq_name = "{{.*}}Epointy"}
8 integer, pointer :: pointy
9 ! CHECK-DAG: fir.alloca i32 {{{.*}}fir.target{{.*}}uniq_name = "{{.*}}Ebullseye"}
10 integer, target :: bullseye
11 ! CHECK: return
12 end subroutine s