Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/volatile2.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { 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