blob: a9b95b439e2b38060d7c7a3917e607c145081285 (
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_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
|