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