Home | History | Annotate | Line # | Download | only in indent
      1 /* $NetBSD: lsym_postfix_op.c,v 1.4 2022/04/24 09:04:12 rillig Exp $ */
      2 
      3 /*
      4  * Tests for the token lsym_postfix_op, which represents the operators '++'
      5  * and '--' for incrementing and decrementing a variable.
      6  *
      7  * See also:
      8  *	lsym_unary_op.c		for the corresponding prefix operators
      9  */
     10 
     11 //indent input
     12 int decl = lvalue ++;
     13 int decl = lvalue --;
     14 //indent end
     15 
     16 //indent run -di0
     17 int decl = lvalue++;
     18 int decl = lvalue--;
     19 //indent end
     20 
     21 
     22 /*
     23  * There is no operator '**', so try that just for fun.
     24  */
     25 //indent input
     26 int decl = lvalue **;
     27 //indent end
     28 
     29 //indent run -di0
     30 int decl = lvalue * *;
     31 //indent end
     32