Module Name: src Committed By: rillig Date: Fri Jun 16 13:43:30 UTC 2023
Modified Files: src/tests/usr.bin/indent: lsym_rparen_or_rbracket.c Log Message: tests/indent: add a few code snippets from usr.bin/xlint To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/indent/lsym_rparen_or_rbracket.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/usr.bin/indent/lsym_rparen_or_rbracket.c diff -u src/tests/usr.bin/indent/lsym_rparen_or_rbracket.c:1.5 src/tests/usr.bin/indent/lsym_rparen_or_rbracket.c:1.6 --- src/tests/usr.bin/indent/lsym_rparen_or_rbracket.c:1.5 Thu Jun 15 09:19:07 2023 +++ src/tests/usr.bin/indent/lsym_rparen_or_rbracket.c Fri Jun 16 13:43:30 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: lsym_rparen_or_rbracket.c,v 1.5 2023/06/15 09:19:07 rillig Exp $ */ +/* $NetBSD: lsym_rparen_or_rbracket.c,v 1.6 2023/06/16 13:43:30 rillig Exp $ */ /* * Tests for the token lsym_rparen_or_lbracket, which represents ')' or ']', @@ -54,3 +54,24 @@ int a = array[ ]; } //indent end + + +//indent input +{ + dcs_align((u_int)dcs); + mpools.pools[i] = (memory_pool){NULL, 0, 0}; + list_add(l, (const char[3]){'-', (char)c, '\0'}); +} +//indent end + +//indent run -ci4 -di0 -nlp +{ +// $ FIXME: No space after cast. + dcs_align((u_int) dcs); +// $ FIXME: Don't add newlines. + mpools.pools[i] = (memory_pool) { + NULL, 0, 0 + }; + list_add(l, (const char[3]){'-', (char)c, '\0'}); +} +//indent end