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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [volatile2.f90] - Rev 377

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

! { dg-do compile }
! { dg-shouldfail "VOLATILE not part of F95" }
! { dg-options "-std=f95" }
! Test whether volatile statements and attributes are rejected
! with -std=f95.
! PR fortran/29601
program volatile_test
  implicit none
  real, volatile :: foo ! { dg-error "VOLATILE attribute" }
  real :: l
  volatile :: l         ! { dg-error "VOLATILE statement" }
  l   = 4.0
  foo = 3.0             ! { dg-error "no IMPLICIT type" }   
end program volatile_test

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

powered by: WebSVN 2.1.0

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