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