Treat the "h" extension as a C++ file
[geany-mirror.git] / tests / ctags / enumerators.f90
blob890f58ddee9fde5cfdd660eaaa46a1264e8215f9
1 module Enums
2 real :: somevar
4 ! we now have enumerators in F2003/8, for the sake of interop with C
5 enum, bind(c) ! unnamed 1
6 enumerator :: red =1, blue
7 enumerator gold, silver, bronze
8 enumerator :: purple
9 end enum
12 ! here follow nonstandard enum declarations, which may become valid in a later standard
13 ! no real harm implementing these as long as valid stuff isn't broken
14 enum
15 enumerator :: no_c_binding
16 end enum
18 enum :: Colons
19 enumerator :: r
20 end enum
22 enum BodyPart
23 enumerator :: arm, leg
24 end enum
26 enum(8) Paren_kind
27 enumerator :: b
28 end enum
30 enum*8 Aster_kind
31 enumerator :: c
32 end enum
34 enum(8) :: Paren_colon
35 enumerator :: d
36 end enum
38 enum*8 :: Aster_colon
39 enumerator :: e
40 end enum
42 enum, bind(c) :: Name_colon
43 enumerator :: d
44 end enum
46 ! another entry to verify the parsing hasn't broken
47 real, parameter :: othervar
49 contains
51 function Func(arg)
52 ! ...
53 end function Func
55 end module Enums