Index: tests/comments.0 =================================================================== --- tests/comments.0 +++ tests/comments.0 @@ -0,0 +1,24 @@ +/* See r303597, r303598, r309219, and r309343 */ +void t(void) { + /* + * Old indent wrapped the URL near where this sentence ends. + * + * https://www.freebsd.org/cgi/man.cgi?query=indent&apropos=0&sektion=0&manpath=FreeBSD+12-current&arch=default&format=html + */ + + /* + * Old indent did not wrap to column 78 + * + * aaaaaa bbbbbb cccccc dddddd eeeeee ffffff ggggg hhhhh iiiii jjjj kk + */ + + /* + * Old indent unnecessarily removed the star comment continuation on the next line. + * + * *test* + */ + + /* r309219 Go through linked list, freeing from the malloced (t[-1]) address. */ + + /* r309343 */ +} Index: tests/comments.0.stdout =================================================================== --- tests/comments.0.stdout +++ tests/comments.0.stdout @@ -0,0 +1,31 @@ +/* See r303597, r303598, r309219, and r309343 */ +void +t(void) +{ + /* + * Old indent wrapped the URL near where this sentence ends. + * + * https://www.freebsd.org/cgi/man.cgi?query=indent&apropos=0&sektion=0&manpath=FreeBSD+12-current&arch=default&format=html + */ + + /* + * Old indent did not wrap to column 78 + * + * aaaaaa bbbbbb cccccc dddddd eeeeee ffffff ggggg hhhhh iiiii jjjj + * kk + */ + + /* + * Old indent unnecessarily removed the star comment continuation on + * the next line. + * + * *test* + */ + + /* + * r309219 Go through linked list, freeing from the malloced (t[-1]) + * address. + */ + + /* r309343 */ +} Index: tests/declarations.0 =================================================================== --- tests/declarations.0 +++ tests/declarations.0 @@ -0,0 +1,20 @@ +/* See r303570 */ +void t(void) { + int a, + b, + c; + int + *d, + *e, + *f; + int (*g)(), + (*h)(), + (*i)(); + int j, + k, + l; + int m + ,n + ,o + ; +} Index: tests/declarations.0.stdout =================================================================== --- tests/declarations.0.stdout +++ tests/declarations.0.stdout @@ -0,0 +1,14 @@ +/* See r303570 */ +void +t(void) +{ + int a, b, c; + int + *d, *e, *f; + int (*g) (), (*h) (), (*i) (); + int j, k, l; + int m + ,n + ,o + ; +} Index: tests/elsecomment.0 =================================================================== --- tests/elsecomment.0 +++ tests/elsecomment.0 @@ -0,0 +1,17 @@ +/* See r303484 and r309342 */ +void t(void) { + if (0) { + + } /* Old indent would remove the following blank line */ + + /* + * test + */ + + if (1) + ; + else /* Old indent would get very confused here */ + { + + } +} Index: tests/elsecomment.0.stdout =================================================================== --- tests/elsecomment.0.stdout +++ tests/elsecomment.0.stdout @@ -0,0 +1,21 @@ +/* See r303484 and r309342 */ +void +t(void) +{ + if (0) + { + + } /* Old indent would remove the following + * blank line */ + + /* + * test + */ + + if (1) + ; + else /* Old indent would get very confused here */ + { + + } +} Index: tests/elsecomment.pro =================================================================== --- tests/elsecomment.pro +++ tests/elsecomment.pro @@ -0,0 +1 @@ +-bl \ No newline at end of file Index: tests/float.0 =================================================================== --- tests/float.0 +++ tests/float.0 @@ -0,0 +1,5 @@ +/* See r303499 */ +void t(void) { + unsigned long x = 314UL; + float y = 3.14f; +} Index: tests/float.0.stdout =================================================================== --- tests/float.0.stdout +++ tests/float.0.stdout @@ -0,0 +1,7 @@ +/* See r303499 */ +void +t(void) +{ + unsigned long x = 314UL; + float y = 3.14f; +} Index: tests/label.0 =================================================================== --- tests/label.0 +++ tests/label.0 @@ -0,0 +1,12 @@ +/* See r303489 */ +void t(void) { + switch (1) + { + case 1: /* test */ + case 2: /* test */ + } +CLEANUP: + ; +V: ; +U: ; +} Index: tests/label.0.stdout =================================================================== --- tests/label.0.stdout +++ tests/label.0.stdout @@ -0,0 +1,13 @@ +/* See r303489 */ +void +t(void) +{ + switch (1) { + case 1: /* test */ + case 2: /* test */ + } +CLEANUP: + ; +V: ; +U: ; +} Index: tests/label.pro =================================================================== --- tests/label.pro +++ tests/label.pro @@ -0,0 +1 @@ +-nut \ No newline at end of file Index: tests/list_head.0 =================================================================== --- tests/list_head.0 +++ tests/list_head.0 @@ -0,0 +1,15 @@ +/* See r309380 */ +static int +do_execve(td, args, mac_p) + struct thread *td; + struct image_args *args; + struct mac *mac_p; +{ + +} + +static LIST_HEAD(, alq) ald_active; +static int ald_shuttingdown = 0; +struct thread *ald_thread; + + Index: tests/list_head.0.stdout =================================================================== --- tests/list_head.0.stdout +++ tests/list_head.0.stdout @@ -0,0 +1,13 @@ +/* See r309380 */ +static int +do_execve(td, args, mac_p) + struct thread *td; + struct image_args *args; + struct mac *mac_p; +{ + +} + +static LIST_HEAD(, alq) ald_active; +static int ald_shuttingdown = 0; +struct thread *ald_thread; Index: tests/nsac.0 =================================================================== --- tests/nsac.0 +++ tests/nsac.0 @@ -0,0 +1,3 @@ +void t(void) { + int a = (double) 8; +} Index: tests/nsac.0.stdout =================================================================== --- tests/nsac.0.stdout +++ tests/nsac.0.stdout @@ -0,0 +1,5 @@ +void +t(void) +{ + int a = (double)8; +} Index: tests/nsac.pro =================================================================== --- tests/nsac.pro +++ tests/nsac.pro @@ -0,0 +1 @@ +-nsac \ No newline at end of file Index: tests/offsetof.0 =================================================================== --- tests/offsetof.0 +++ tests/offsetof.0 @@ -0,0 +1,4 @@ +/* See r303718 */ +void t(void) { + int ntable = malloc(offsetof(struct fdescenttbl, fdt_ofiles) + 1); +} Index: tests/offsetof.0.stdout =================================================================== --- tests/offsetof.0.stdout +++ tests/offsetof.0.stdout @@ -0,0 +1,6 @@ +/* See r303718 */ +void +t(void) +{ + int ntable = malloc(offsetof(struct fdescenttbl, fdt_ofiles) + 1); +} Index: tests/sac.0 =================================================================== --- tests/sac.0 +++ tests/sac.0 @@ -0,0 +1,3 @@ +void t(void) { + int a = (double) 8; +} Index: tests/sac.0.stdout =================================================================== --- tests/sac.0.stdout +++ tests/sac.0.stdout @@ -0,0 +1,5 @@ +void +t(void) +{ + int a = (double) 8; +} Index: tests/sac.pro =================================================================== --- tests/sac.pro +++ tests/sac.pro @@ -0,0 +1 @@ +-sac \ No newline at end of file Index: tests/struct.0 =================================================================== --- tests/struct.0 +++ tests/struct.0 @@ -0,0 +1,12 @@ +/* See r303485 */ +void +t(void) +{ + static const struct { + int a; + int b; + } c[] = { + { D, E }, + { F, G } + }; +} Index: tests/struct.0.stdout =================================================================== --- tests/struct.0.stdout +++ tests/struct.0.stdout @@ -0,0 +1,12 @@ +/* See r303485 */ +void +t(void) +{ + static const struct { + int a; + int b; + } c[] = { + {D, E}, + {F, G} + }; +} Index: tests/surplusbad.0 =================================================================== --- tests/surplusbad.0 +++ tests/surplusbad.0 @@ -0,0 +1,8 @@ +/* See r303599 */ +#if defined(__i386__) +int a; +#elif defined(__amd64__) +int b; +#else +#error "Port me" +#endif Index: tests/surplusbad.0.stdout =================================================================== --- tests/surplusbad.0.stdout +++ tests/surplusbad.0.stdout @@ -0,0 +1,8 @@ +/* See r303599 */ +#if defined(__i386__) +int a; +#elif defined(__amd64__) +int b; +#else +#error "Port me" +#endif Index: tests/surplusbad.pro =================================================================== --- tests/surplusbad.pro +++ tests/surplusbad.pro @@ -0,0 +1 @@ +-bad \ No newline at end of file Index: tests/types_from_file.0 =================================================================== --- tests/types_from_file.0 +++ tests/types_from_file.0 @@ -0,0 +1,2 @@ +/* See r303735 */ +void t(a *x, b *y, c *z); Index: tests/types_from_file.0.stdout =================================================================== --- tests/types_from_file.0.stdout +++ tests/types_from_file.0.stdout @@ -0,0 +1,2 @@ +/* See r303735 */ +void t(a *x, b *y, c * z); Index: tests/types_from_file.list =================================================================== --- tests/types_from_file.list +++ tests/types_from_file.list @@ -0,0 +1,2 @@ +b +a \ No newline at end of file Index: tests/types_from_file.pro =================================================================== --- tests/types_from_file.pro +++ tests/types_from_file.pro @@ -0,0 +1 @@ +-Utypes-from-file.list \ No newline at end of file Index: tests/wchar.0 =================================================================== --- tests/wchar.0 +++ tests/wchar.0 @@ -0,0 +1,5 @@ +/* See r309220 */ +#include + +wchar_t *x = L"test"; +wchar_t y = L't'; Index: tests/wchar.0.stdout =================================================================== --- tests/wchar.0.stdout +++ tests/wchar.0.stdout @@ -0,0 +1,5 @@ +/* See r309220 */ +#include + +wchar_t *x = L"test"; +wchar_t y = L't';