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