bolt/deps/llvm-18.1.8/flang/test/Semantics/save02.f90
2025-02-14 19:21:04 +01:00

9 lines
363 B
Fortran

! RUN: %flang_fc1 -fsyntax-only -fno-automatic %s 2>&1 | FileCheck %s --allow-empty
! Checks that -fno-automatic implies the SAVE attribute.
! This same subroutine appears in test save01.f90 where it is an
! error case due to the absence of both SAVE and -fno-automatic.
subroutine foo
integer, target :: t
!CHECK-NOT: error:
integer, pointer :: p => t
end