llvm-project/flang/test/Lower/assign-statement.f90
Carlos Seo fc0a978327
[Flang] Fix ASSIGN statement (#149941)
Handle the case where the assigned variable also has a pointer
attribute.

Fixes #121721
2025-07-23 11:16:11 -03:00

13 lines
241 B
Fortran

! RUN: bbc -emit-fir -o - %s | FileCheck %s
! CHECK-LABEL: func @_QQmain
program main
integer :: ip
pointer :: ip
allocate(ip)
assign 10 to ip
! CHECK: fir.store %c10_i32 to %11 : !fir.ptr<i32>
10 return
end program main