OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fortran/
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gfortran.dg
/
enum_2.f90
1
! { dg-do compile }
2
! Program to test ENUM parsing errors
3
4
program main
5
implicit none
6
enum, bind (c)
7
enumerator :: red, black
8
integer :: x ! { dg-error "Unexpected data declaration" }
9
enumerator blue = 1 ! { dg-error "Syntax error in ENUMERATOR definition" }
10
end enum
11
12
enumerator :: sun ! { dg-error "ENUM" }
13
end program main