xref: /netbsd-src/tests/usr.bin/indent/fmt_expr.c (revision 53b02e147d4ed531c0d2a5ca9b3e8026ba3e99b5)
1 /* $NetBSD: fmt_expr.c,v 1.2 2021/11/19 22:24:29 rillig Exp $ */
2 /* $FreeBSD$ */
3 
4 /*
5  * Tests for all kinds of expressions that are not directly related to unary
6  * or binary operators.
7  *
8  * See also:
9  *	lsym_binary_op.c
10  *	lsym_unary_op.c
11  */
12 
13 /* See lsym_offsetof.c. */
14 #indent input
15 void t(void) {
16     int n = malloc(offsetof(struct s, f) + 1);
17 }
18 #indent end
19 
20 #indent run
21 void
22 t(void)
23 {
24 	int		n = malloc(offsetof(struct s, f) + 1);
25 }
26 #indent end
27