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