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