summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/volatile.f90
blob: 73184250cbe9c6b97b29b3e464c8d9f2964fad41 (plain)
1
2
3
4
5
6
7
8
9
10
11
! { dg-do run }
! Test whether volatile statements and attributes are accepted
! PR fortran/29601
program volatile_test
  implicit none
  real :: l,m
  real, volatile :: r = 3.
  volatile :: l
  l = 4.0
  m = 3.0
end program volatile_test