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