blob: 8a5c60a10f4c026f54a0068860ec4709f687088a [file] [log] [blame]
! { dg-do run }
! { dg-options "-fshort-enums" }
! { dg-options "-fshort-enums -Wl,--no-enum-size-warning" { target arm*-*-linux*eabi } }
! Program to test enumerations when option -fshort-enums is given
program main
implicit none
enum, bind (c)
enumerator :: red, black = 127
enumerator blue
end enum
if (red /= 0) call abort
if (black /= 127) call abort
if (blue /= 128) call abort
end program main