File: test.cmd

package info (click to toggle)
libgnatcoll 1.7gpl2015-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 17,280 kB
  • ctags: 1,124
  • sloc: ada: 134,072; python: 4,017; cpp: 1,397; ansic: 1,234; makefile: 368; sh: 152; xml: 31; sql: 6
file content (68 lines) | stat: -rwxr-xr-x 1,162 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
--TEST -Pdummy.gpr

-------
-- C --
-------

--  Check that from an "enum" type we can correctly retrieve the valid
--  valid.

DECL _enum1:enum.c
#  1> _enum1:enum.c:1:14

LITERALS _enum1:enum.c
#  1> BAR:enum.c:3:3
#  2> FOO:enum.c:2:3

--  Check through the typedef
DECL enum1:enum.c
#  1> enum1:enum.c:4:3
TYPE enum1:enum.c
#  1> _enum1:enum.c:1:14
LITERALS enum1:enum.c

--  Check that an enumeration literal is properly reported as such, and
--  that we can find its parent enumeration
DOC FOO:enum.c
#enumeration literal declared at enum.c:2:3
#
#Type
#   _enum1
#

TYPE FOO:enum.c
#  1> _enum1:enum.c:1:14

--------
-- Ada --
---------

LITERALS Enum1:a.ads:2:9
#  1> Value1:a.ads:3:7
#  2> Value2:a.ads:4:7

TYPE Value1:a.ads
#  1> Enum1:a.ads:2:9

---------
-- C++ --
---------

LITERALS color:enums.cc:3
#  1> blue:enums.cc:6:9
#  2> green:enums.cc:5:9
#  3> red:enums.cc:4:9

LITERALS new_bool_enum:enums.cc:1
#  1> new_false:enums.cc:1:44
#  2> new_true:enums.cc:1:30

--  a typedef
LITERALS new_bool:enums.cc:1

TYPE a:enums.cc
#  1> new_bool:enums.cc:1:60
TYPE b:enums.cc
#  1> new_bool_enum:enums.cc:1:14
TYPE c:enums.cc
#  1> color:enums.cc:3:6