xref: /netbsd-src/tests/usr.bin/indent/fmt_expr.c (revision 122b5006ee1bd67145794b4cde92f4fe4781a5ec)
1 /* $NetBSD: fmt_expr.c,v 1.1 2021/10/23 20:17:08 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: token_binary_op, token_unary_op.
9  */
10 
11 /* See FreeBSD r303718. */
12 #indent input
13 void t(void) {
14     int n = malloc(offsetof(struct s, f) + 1);
15 }
16 #indent end
17 
18 #indent run
19 void
20 t(void)
21 {
22 	int		n = malloc(offsetof(struct s, f) + 1);
23 }
24 #indent end
25