File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
cpp/ql/test/library-tests/dataflow/asExpr Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -37,4 +37,13 @@ void test_aggregate_literal() {
37
37
38
38
int xs[] = {1 , 2 , 3 }; // $ asExpr=1 asExpr=2 asExpr=3 asExpr={...}
39
39
const int ys[] = {[0 ] = 4 , [1 ] = 5 , [0 ] = 6 }; // $ asExpr=4 asExpr=5 asExpr=6 asExpr={...}
40
- }
40
+ }
41
+
42
+ void test_postfix_crement (int *p, int q) {
43
+ p++; // $ asExpr="... ++" asIndirectExpr="... ++" asExpr=p asIndirectExpr=p
44
+ q++; // $ asExpr="... ++" asExpr=q
45
+ (void )(p++); // $ numberOfNodes="... ++: 2" asExpr="... ++" numberOfIndirectNodes="... ++: 2" asIndirectExpr="... ++" MISSING: asExpr=p asIndirectExpr=p
46
+ (void )(q++); // $ numberOfNodes="... ++: 2" asExpr="... ++" MISSING: asExpr=q
47
+ int *p1 = p++; // $ asExpr="... ++" asIndirectExpr="... ++" asExpr="p(... ++)" asIndirectExpr="p(*... ++)"
48
+ int q1 = q++; // $ asExpr="... ++" asExpr="q(... ++)"
49
+ }
You can’t perform that action at this time.
0 commit comments