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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [volatile2.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-shouldfail "VOLATILE not part of F95" }
3
! { dg-options "-std=f95" }
4
! Test whether volatile statements and attributes are rejected
5
! with -std=f95.
6
! PR fortran/29601
7
program volatile_test
8
  implicit none
9
  real, volatile :: foo ! { dg-error "VOLATILE attribute" }
10
  real :: l
11
  volatile :: l         ! { dg-error "VOLATILE statement" }
12
  l   = 4.0
13
  foo = 3.0             ! { dg-error "no IMPLICIT type" }
14
end program volatile_test

powered by: WebSVN 2.1.0

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