lsym_unary_op.c revision 1.4 1 /* $NetBSD: lsym_unary_op.c,v 1.4 2022/04/24 09:04:12 rillig Exp $ */
2
3 /*
4 * Tests for the token lsym_unary_op, which represents a unary operator.
5 *
6 * In an expression, a unary operator is written without blank next to its
7 * argument.
8 *
9 * In a type name, the "unary operator" '*' represents the derivation of a
10 * pointer type.
11 */
12
13 //indent input
14 void
15 unary_operators(void)
16 {
17 /* In the order of appearance in C11 6.5. */
18 function(a++, a--, ++a, --a, &a, *a, +a, -a, ~a, !a);
19 }
20 //indent end
21
22 //indent run-equals-input
23