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