URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
! { dg-do run }
|
! { dg-do run }
|
! { dg-options "-fshort-enums" }
|
! { dg-options "-fshort-enums" }
|
! Program to test enumerations when option -fshort-enums is given
|
! Program to test enumerations when option -fshort-enums is given
|
|
|
program main
|
program main
|
implicit none
|
implicit none
|
enum, bind (c)
|
enum, bind (c)
|
enumerator :: red, black = 127
|
enumerator :: red, black = 127
|
enumerator blue
|
enumerator blue
|
end enum
|
end enum
|
if (red /= 0) call abort
|
if (red /= 0) call abort
|
if (black /= 127) call abort
|
if (black /= 127) call abort
|
if (blue /= 128) call abort
|
if (blue /= 128) call abort
|
end program main
|
end program main
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.