aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/warn_std_3.f90
blob: 0d0a0f149bdddf40d4d29230c9e52ec473156627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
! { dg-do compile }
! { dg-options "-Wnonstd-intrinsics -std=f2003" }
!
! PR fortran/32778 - pedantic warning: intrinsics that 
!                    are GNU extensions not part of -std=gnu
!
! (3/3) Check for GNU extensions if -std=f2003.
!

CHARACTER(len=255) :: tmp
REAL(8) :: x

! GNU extension, check overload of F77 standard intrinsic
x = ZABS(CMPLX(0.0, 1.0, 8))    ! { dg-error "is not included in the selected standard" }

! GNU extension
CALL flush()                    ! { dg-error "is not included in the selected standard" }

! F95
tmp = ADJUSTL("  gfortran  ")

! F2003
CALL GET_COMMAND (tmp)

END