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