diff options
| author | rillig <rillig@NetBSD.org> | 2023-06-08 06:47:13 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2023-06-08 06:47:13 +0000 |
| commit | f41e9adb0b29c19fb4e9e3a388214e0985598d2d (patch) | |
| tree | 76565bb210b151b3e0634b2f3ba4c5fa2d19e0f6 /tests | |
| parent | 8fe718b56d7a181a97173b2238cf378602b96d4a (diff) | |
indent: clean up and condense code
No functional change.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/usr.bin/indent/lsym_rbrace.c | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/tests/usr.bin/indent/lsym_rbrace.c b/tests/usr.bin/indent/lsym_rbrace.c index 7cabd5af7f4..c01dbc97267 100644 --- a/tests/usr.bin/indent/lsym_rbrace.c +++ b/tests/usr.bin/indent/lsym_rbrace.c @@ -1,4 +1,4 @@ -/* $NetBSD: lsym_rbrace.c,v 1.6 2023/06/04 13:49:00 rillig Exp $ */ +/* $NetBSD: lsym_rbrace.c,v 1.7 2023/06/08 06:47:14 rillig Exp $ */ /* * Tests for the token lsym_rbrace, which represents a '}' in these contexts: @@ -66,3 +66,33 @@ origin(void) //indent end //indent run-equals-input + + +//indent input +{ +int numbers[][] = { +{11}, +{21}, +{31}, +}; +int numbers[][] = {{11}, +{21}, +{31}, +}; +} +//indent end + +//indent run -di0 +{ + int numbers[][] = { + {11}, + {21}, + {31}, + }; + int numbers[][] = {{11}, + // $ FIXME: Must be indented. + {21}, + {31}, + }; +} +//indent end |
