summaryrefslogtreecommitdiff
path: root/tests/usr.bin/indent/lsym_offsetof.c
blob: fbedc5f61d386b81d94e4afb9d4030caedbbffee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* $NetBSD: lsym_offsetof.c,v 1.5 2022/04/24 09:04:12 rillig Exp $ */

/*
 * Tests for the token lsym_offsetof, which represents the keyword 'offsetof'
 * that starts an expression for computing the offset of a member in a struct.
 */

//indent input
size_t		offset = offsetof(struct s, member);
//indent end

//indent run-equals-input

//indent run-equals-input -bs

/*
 * The option '-pcs' forces a blank after the function name.  That option
 * applies to 'offsetof' as well, even though it is not really a function.
 */
//indent run -pcs
size_t		offset = offsetof (struct s, member);
//indent end