1 /* $NetBSD: ctags.test,v 1.2 1995/03/26 20:14:14 glass Exp $ */ 2 3 int bar = (1 + 5); 4 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; 15 }; 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); \ 43 } 44 #if defined(BAR) 45 int bar; 46 #endif 47 union union_one { 48 struct struct_three s3; 49 char foo[25]; 50 }; 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]; 58 { 59 typedef unsigned char u_char; 60 register struct buf *bp; 61 five(one,two); 62 } 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 */ 68 { 69 } 70