xref: /dragonfly/usr.bin/ctags/test/ctags.test (revision 9348a738)
1int	bar = (1 + 5);
2
3FOO("here is a #define test: ) {");
4char sysent[20];
5int	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
11struct struct_three {
12	int	list;
13};
14#define SINGLE
15int	BAD();
16enum color {red, green, gold, brown};
17char qq[] = "  quote(one,two) {int bar;}  ";
18typedef 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))
35int	bar;
36#endif
37#define MULTIPLE {\
38	multiple(one,two); \
39	lineno++; \
40	callroute(one,two); \
41}
42#if defined(BAR)
43int	bar;
44#endif
45union union_one {
46	struct struct_three	s3;
47	char	foo[25];
48};
49#define XYZ(A,B)	(A + B / 2) * (3 - 26 + l_lineno)
50routine1(one,two)	/* comments here are fun... */
51	struct {
52		int entry;
53		char bar[34];
54	} *one;
55	char two[10];
56{
57typedef unsigned char	u_char;
58	struct buf *bp;
59	five(one,two);
60}
61 routine2 (one,two) { puts("hello\n"); }
62 routine3
63(one,
64two) { puts("world\n"); }
65routine4(int one, char (*two)(void)) /* test ANSI arguments */
66{
67}
68