[Clang] Make OpenMP offloading consistently use the bound architecture (#125135)
[llvm-project.git] / flang / test / Lower / HLFIR / tdesc-character-comp-init.f90
blob1ae312e8cc1c4ceed089728d99401754eca50efd
1 ! Test lowering of derived type descriptor for types with
2 ! a default initialized character component.
4 ! RUN: bbc -emit-fir -hlfir -o - %s | FileCheck %s
6 subroutine test()
7 type t
8 character(5) :: character_comp = "hello"
9 end type
10 type(t) :: x
11 end subroutine
12 ! CHECK-LABEL: fir.global {{.*}} @_QFtestE.c.t constant
13 ! CHECK: fir.address_of(@_QFtestE.di.t.character_comp) : !fir.ref<!fir.char<1,5>>