xref: /freebsd/usr.bin/indent/tests/comments.0.stdout (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1typedef enum x {
2	aaaaaaaaaaaaaaaaaaaaaa = 1 << 0,	/* test a */
3	bbbbbbbbbbbbbbbbb = 1 << 1,	/* test b */
4	cccccccccccccc = 1 << 1,	/* test c */
5	dddddddddddddddddddddddddddddd = 1 << 2	/* test d */
6} x;
7
8/* See r303597, r303598, r309219, and r309343 */
9void
10t(void)
11{
12	/*
13	 * Old indent wrapped the URL near where this sentence ends.
14	 *
15	 * https://man.freebsd.org/cgi/man.cgi?query=indent&apropos=0&sektion=0&manpath=freebsd-current&arch=default&format=html&x
16	 */
17
18	/*
19	 * Old indent did not wrap to column 78
20	 *
21	 * aaaaaa bbbbbb cccccc dddddd eeeeee ffffff ggggg hhhhh iiiii jjjj
22	 * kk
23	 */
24
25	/*
26	 * Old indent unnecessarily removed the star comment continuation on
27	 * the next line.
28	 *
29	 * *test*
30	 */
31
32	/*
33	 * r309219 Go through linked list, freeing from the malloced (t[-1])
34	 * address.
35	 */
36
37	/* r309343	*/
38}
39
40int
41c(void)
42{
43	if (1) {		/*- a christmas tree  *
44					             ***
45					            ***** */
46		/*- another one *
47			       ***
48			      ***** */
49		7;
50	}
51
52	if (1)			/*- a christmas tree  *
53						     ***
54						    ***** */
55		/*- another one *
56			       ***
57			      ***** */
58		1;
59}
60