summaryrefslogtreecommitdiff
path: root/flang/test/Lower/variable.f90
blob: 76d4a26838bf7f093778b72997d2931f041dbbe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
! RUN: bbc -emit-fir %s -o - | FileCheck %s

! CHECK-LABEL: func @_QPs() {
subroutine s
  ! CHECK-DAG: fir.alloca !fir.box<!fir.heap<i32>> {{{.*}}uniq_name = "{{.*}}Eally"}
  integer, allocatable :: ally
  ! CHECK-DAG: fir.alloca !fir.box<!fir.ptr<i32>> {{{.*}}uniq_name = "{{.*}}Epointy"} 
  integer, pointer :: pointy
  ! CHECK-DAG: fir.alloca i32 {{{.*}}fir.target{{.*}}uniq_name = "{{.*}}Ebullseye"}
  integer, target :: bullseye
  ! CHECK: return
end subroutine s