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