URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [volatile3.f90] - Rev 708
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do compile }! { dg-shouldfail "Invalid use of VOLATILE" }! Test whether volatile statements and attributes are! properly error checked.! PR fortran/29601program volatile_testimplicit nonereal, external, volatile :: foo ! { dg-error "VOLATILE attribute conflicts with EXTERNAL attribute" }real, intrinsic, volatile :: sin ! { dg-error "VOLATILE attribute conflicts with INTRINSIC attribute" }real, parameter, volatile :: r = 5.5 ! { dg-error "PARAMETER attribute conflicts with VOLATILE attribute" }real :: l,mreal,volatile :: nreal, volatile,volatile :: r = 3. ! { dg-error "Duplicate VOLATILE attribute" }volatile :: l,n ! { dg-warning "Duplicate VOLATILE attribute" }volatile ! { dg-error "Syntax error in VOLATILE statement" }volatile :: volatile_test ! { dg-error "PROGRAM attribute conflicts with VOLATILE attribute" }l = 4.0m = 3.0containssubroutine foo(a) ! { dg-error "has no IMPLICIT type" } ! due to error belowinteger, intent(in), volatile :: a ! { dg-error "VOLATILE attribute conflicts with INTENT\\(IN\\)" }end subroutineend program volatile_test
Go to most recent revision | Compare with Previous | Blame | View Log
