1f334ac2b8b142b5ac425593b7176cc3cfef3a5c
[dragonfly.git] / usr.bin / ctags / test / ctags.test
1 int     bar = (1 + 5);
2
3 FOO("here is a #define test: ) {");
4 char sysent[20];
5 int     nsysent = sizeof (sysent) / sizeof (sysent[0]);
6 /*
7  * now is the time for a comment.
8  * four lines in length...
9  */struct struct_xtra{int list;};r4(x,y){};typedef struct{int bar;}struct_xxe;
10 #define FOO     BAR
11 struct struct_three {
12         int     list;
13 };
14 #define SINGLE
15 int     BAD();
16 enum color {red, green, gold, brown};
17 char qq[] = "  quote(one,two) {int bar;}  ";
18 typedef struct {
19         int     bar;
20         struct struct_two {
21                 int foo;
22                 union union_3 {
23                         struct struct_three entry;
24                         char size[25];
25                 };
26                 struct last {
27                         struct struct_three xentry;
28                         char list[34];
29                 };
30         };
31 } struct_one;
32 #define TWOLINE ((MAXLIST + FUTURE + 15) \
33         / (time_to_live ? 3 : 4))
34 #if (defined(BAR))
35 int     bar;
36 #endif
37 #define MULTIPLE {\
38         multiple(one,two); \
39         lineno++; \
40         callroute(one,two); \
41 }
42 #if defined(BAR)
43 int     bar;
44 #endif
45 union union_one {
46         struct struct_three     s3;
47         char    foo[25];
48 };
49 #define XYZ(A,B)        (A + B / 2) * (3 - 26 + l_lineno)
50 routine1(one,two)       /* comments here are fun... */
51         struct {
52                 int entry;
53                 char bar[34];
54         } *one;
55         char two[10];
56 {
57 typedef unsigned char   u_char;
58         register struct buf *bp;
59         five(one,two);
60 }
61  routine2 (one,two) { puts("hello\n"); }
62  routine3
63 (one,
64 two) { puts("world\n"); }
65 routine4(int one, char (*two)(void)) /* test ANSI arguments */
66 {
67 }