xref: /Universal-ctags/libreadtags/tests/duplicated-names.c (revision a41b16516f3da7c2ee4d19b4240bc27562d4b442)
1 /*
2  * for s in yes foldcase no; do
3  *   u-ctags --quiet --options=NONE -o duplicated-names--sorted-$s.tags --kinds-C='*' --sort=$s duplicated-names.c
4  * done
5  *
6  * u-ctags --extras=+pf --fields=+n -o - duplicated-names.c \
7  * | sed -e 's/line:/line:x/' \
8  * > broken-line-field.tags
9  *
10 
11  */
12 int o;
O(void)13 int O (void) { return 0; }
14 
15 int N;
16 struct n {
17 	int n;
18 };
19 typedef int n;
main(int n)20 int main(int n)
21 {
22 	for (int n = 0; n < 1; n++)
23 	{
24 		int n;
25 		return 0;
26 	}
27 }
28 
29 int m;
M(void)30 int M (void) { return 0; }
31