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