repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
enum_9.f90
blob
e735cf87772ba17875e1373e15c69bf13686bc55
1
! { dg-do run }
2
! { dg-options "-fshort-enums" }
3
! Program to test enumerations when option -fshort-enums is given
4
5
program
main
6
implicit none
7
enum
,
bind
(
c
)
8
enumerator
::
red
,
black
=
127
9
enumerator blue
10
end
enum
11
if
(
red
/=
0
)
call
abort
12
if
(
black
/=
127
)
call
abort
13
if
(
blue
/=
128
)
call
abort
14
end program
main