1 /* $NetBSD: fmt_expr.c,v 1.6 2023/06/09 11:22:31 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 //indent input 13 { 14 // See lsym_offsetof.c. 15 malloc(offsetof(struct s, f) + 1); 16 17 // C99 compound literals use initializer braces. 18 println((const char[3]){'-', c, '\0'}); 19 x = ((struct point){0, 0}).x; 20 21 // XXX: GCC statement expressions are not supported yet. 22 int var = 23 ( 24 { 25 1 26 } 27 ) 28 ; 29 30 for (ln = gnodes->first; ln != NULL; ln = ln->next) 31 // $ FIXME: No space after the cast. 32 *(GNode **) Vector_Push(&vec) = ln->datum; 33 } 34 //indent end 35 36 //indent run-equals-input 37