xref: /netbsd-src/tests/usr.bin/indent/lsym_lbrace.c (revision f0fde9902fd4d72ded2807793acc7bfaa1ebf243)
1 /* $NetBSD: lsym_lbrace.c,v 1.2 2021/11/20 16:54:17 rillig Exp $ */
2 /* $FreeBSD$ */
3 
4 /*
5  * Tests for the token lsym_lbrace, which represents a '{' in these contexts:
6  *
7  * In an initializer, '{' starts an inner group of initializers, usually to
8  * initialize a nested struct, union or array.
9  *
10  * In a function body, '{' starts a block.
11  *
12  * In an expression, '(type){' starts a compound expression that is typically
13  * used in an assignment to a struct or array.
14  *
15  * TODO: try to split this token into lsym_lbrace_block and lsym_lbrace_init.
16  */
17 
18 #indent input
19 // TODO: add input
20 #indent end
21 
22 #indent run-equals-input
23