URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
! { dg-do compile }
|
! { dg-do compile }
|
! Program to test ENUM parsing errors
|
! Program to test ENUM parsing errors
|
|
|
program main
|
program main
|
implicit none
|
implicit none
|
enum, bind (c)
|
enum, bind (c)
|
enumerator :: red, black
|
enumerator :: red, black
|
integer :: x ! { dg-error "Unexpected data declaration" }
|
integer :: x ! { dg-error "Unexpected data declaration" }
|
enumerator blue = 1 ! { dg-error "Syntax error in ENUMERATOR definition" }
|
enumerator blue = 1 ! { dg-error "Syntax error in ENUMERATOR definition" }
|
end enum
|
end enum
|
|
|
enumerator :: sun ! { dg-error "ENUM" }
|
enumerator :: sun ! { dg-error "ENUM" }
|
end program main
|
end program main
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.