xref: /freebsd/usr.bin/indent/tests/declarations.0 (revision 3c4ba5f55438f7afd4f4b0b56f88f2bb505fd6a6)
1/* $FreeBSD$ */
2/* See r303570 */
3
4typedef void 	(*voidptr) (int *);
5
6static const struct
7{
8	double		x;
9	double		y, z;
10} n[m + 1] =
11{
12	{
13		.0,
14		.9,
15		5
16	}
17};
18
19typedef struct Complex
20{
21	double		x;
22	double		y;
23}	Complex;
24
25void
26t1 (char *a, int b,
27	void (*fn)(void))
28{}
29
30void t2 (char *x, int y)
31{
32	int a,
33	b,
34	c;
35	int
36	*d,
37	*e,
38	*f;
39	int (*g)(),
40	(*h)(),
41	(*i)();
42	int j,
43	k,
44	l;
45	int m
46	,n
47	,o
48	;
49	int		chars[ /* push the comma beyond column 74 .... */ ], x;
50}
51
52const int	int_minimum_size =
53MAXALIGN(offsetof(int, test)) + MAXIMUM_ALIGNOF;
54
55int *int_create(void)
56{
57
58}
59
60static
61_attribute_printf(1, 2)
62void
63print_error(const char *fmt,...)
64{
65
66}
67
68static LIST_HEAD(, alq) ald_active;
69static int ald_shutingdown = 0;
70struct thread *ald_thread;
71
72static int
73do_execve(td, args, mac_p)
74	struct thread *td;
75	struct image_args *args;
76	struct mac *mac_p;
77{
78
79}
80