blob: 60655df427c90dea98daec8248bd1f8d8d815af2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
! { 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
|