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

15 lines
599 B
Fortran

! RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic -Werror
! Check that we get portability warning for the extension:
! - matching but non-'E' exponent letter together with kind-param
subroutine s
real :: realvar1 = 4.0
real :: realvar2 = 4.0D6
real :: realvar3 = 4.0_8
real :: realvar4 = 4.0E6_4
real :: realvar5 = 4.0E6_8
!PORTABILITY: Explicit kind parameter together with non-'E' exponent letter is not standard
real :: realvar6 = 4.0D6_8
!WARNING: Explicit kind parameter on real constant disagrees with exponent letter 'd'
real :: realvar7 = 4.0D6_4
end subroutine s