OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [warn_std_2.f90] - Blame information for rev 816

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do compile }
2
! { dg-options "-std=f95 -Wintrinsics-std" }
3
!
4
! PR fortran/32778 - pedantic warning: intrinsics that
5
!                    are GNU extensions not part of -std=gnu
6
!
7
! (2/3) Check for GNU extensions and intrinsics from F2003 if -std=f95.
8
!
9
 
10
CHARACTER(len=255) :: tmp
11
REAL(8) :: x
12
 
13
! GNU extension, check overload of F77 standard intrinsic
14
x = ZABS(CMPLX(0.0, 1.0, 8))    ! { dg-warning "extension" }
15
 
16
! GNU extension
17
CALL flush()                    ! { dg-warning "extension" }
18
 
19
! F95
20
tmp = ADJUSTL("  gfortran  ")
21
 
22
! F2003
23
CALL GET_COMMAND (tmp)          ! { dg-warning "Fortran 2003" }
24
 
25
END

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.