diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/volatile.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/volatile.f90 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/volatile.f90 b/gcc/testsuite/gfortran.dg/volatile.f90 new file mode 100644 index 00000000000..73184250cbe --- /dev/null +++ b/gcc/testsuite/gfortran.dg/volatile.f90 @@ -0,0 +1,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 |