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