File tree Expand file tree Collapse file tree 7 files changed +18
-0
lines changed
cpp/ql/test/library-tests/defuse Expand file tree Collapse file tree 7 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 81
81
| pass_by_ref.cpp:60:7:60:7 | x | pass_by_ref.cpp:60:10:60:11 | 2 |
82
82
| pass_by_ref.cpp:60:7:60:7 | x | pass_by_ref.cpp:61:34:61:35 | & ... |
83
83
| pass_by_ref.cpp:66:8:66:8 | p | pass_by_ref.cpp:66:12:66:18 | 0 |
84
+ | pass_by_ref.cpp:74:7:74:7 | x | pass_by_ref.cpp:74:10:74:11 | 2 |
85
+ | pass_by_ref.cpp:74:7:74:7 | x | pass_by_ref.cpp:75:35:75:36 | & ... |
84
86
| test.cpp:4:7:4:7 | a | test.cpp:5:3:5:8 | ... = ... |
85
87
| test.cpp:4:7:4:7 | a | test.cpp:13:3:13:7 | ... = ... |
86
88
| test.cpp:4:7:4:7 | a | test.cpp:19:5:19:9 | ... = ... |
Original file line number Diff line number Diff line change 79
79
| pass_by_ref.cpp:60:7:60:7 | x | pass_by_ref.cpp:61:34:61:35 | & ... | pass_by_ref.cpp:62:10:62:10 | x |
80
80
| pass_by_ref.cpp:66:8:66:8 | p | pass_by_ref.cpp:66:12:66:18 | 0 | pass_by_ref.cpp:67:34:67:34 | p |
81
81
| pass_by_ref.cpp:66:8:66:8 | p | pass_by_ref.cpp:66:12:66:18 | 0 | pass_by_ref.cpp:68:10:68:10 | p |
82
+ | pass_by_ref.cpp:74:7:74:7 | x | pass_by_ref.cpp:74:10:74:11 | 2 | pass_by_ref.cpp:75:36:75:36 | x |
83
+ | pass_by_ref.cpp:74:7:74:7 | x | pass_by_ref.cpp:75:35:75:36 | & ... | pass_by_ref.cpp:76:10:76:10 | x |
82
84
| test.cpp:4:7:4:7 | a | test.cpp:5:3:5:8 | ... = ... | test.cpp:9:7:9:7 | a |
83
85
| test.cpp:4:7:4:7 | a | test.cpp:13:3:13:7 | ... = ... | test.cpp:14:7:14:7 | a |
84
86
| test.cpp:4:7:4:7 | a | test.cpp:13:3:13:7 | ... = ... | test.cpp:18:7:18:7 | a |
Original file line number Diff line number Diff line change 19
19
| pass_by_ref.cpp:46:7:46:7 | i | pass_by_ref.cpp:46:11:46:11 | n | pass_by_ref.cpp:46:11:46:11 | n |
20
20
| pass_by_ref.cpp:60:7:60:7 | x | pass_by_ref.cpp:60:10:60:11 | 2 | pass_by_ref.cpp:60:10:60:11 | 2 |
21
21
| pass_by_ref.cpp:66:8:66:8 | p | pass_by_ref.cpp:66:12:66:18 | 0 | pass_by_ref.cpp:66:12:66:18 | 0 |
22
+ | pass_by_ref.cpp:74:7:74:7 | x | pass_by_ref.cpp:74:10:74:11 | 2 | pass_by_ref.cpp:74:10:74:11 | 2 |
22
23
| test.cpp:4:7:4:7 | a | test.cpp:5:3:5:8 | ... = ... | test.cpp:5:7:5:8 | a0 |
23
24
| test.cpp:4:7:4:7 | a | test.cpp:13:3:13:7 | ... = ... | test.cpp:13:7:13:7 | b |
24
25
| test.cpp:4:7:4:7 | a | test.cpp:19:5:19:9 | ... = ... | test.cpp:19:9:19:9 | 1 |
Original file line number Diff line number Diff line change 155
155
| pass_by_ref.cpp:62:10:62:10 | x | |
156
156
| pass_by_ref.cpp:67:34:67:34 | p | const address |
157
157
| pass_by_ref.cpp:68:10:68:10 | p | |
158
+ | pass_by_ref.cpp:75:36:75:36 | x | non-const address |
159
+ | pass_by_ref.cpp:76:10:76:10 | x | |
158
160
| test.cpp:5:3:5:3 | a | |
159
161
| test.cpp:5:7:5:8 | a0 | |
160
162
| test.cpp:6:3:6:3 | b | |
Original file line number Diff line number Diff line change @@ -67,3 +67,11 @@ int * noTemporaryObject() {
67
67
constPointerReferenceParameter (p);
68
68
return p;
69
69
}
70
+
71
+ void pointerRvalueReferenceParameter (int * && pRef);
72
+
73
+ int temporaryObject2 () {
74
+ int x = 2 ;
75
+ pointerRvalueReferenceParameter (&x);
76
+ return x;
77
+ }
Original file line number Diff line number Diff line change 122
122
| pass_by_ref.cpp:60:7:60:7 | x | pass_by_ref.cpp:62:10:62:10 | x |
123
123
| pass_by_ref.cpp:66:8:66:8 | p | pass_by_ref.cpp:67:34:67:34 | p |
124
124
| pass_by_ref.cpp:66:8:66:8 | p | pass_by_ref.cpp:68:10:68:10 | p |
125
+ | pass_by_ref.cpp:74:7:74:7 | x | pass_by_ref.cpp:75:36:75:36 | x |
126
+ | pass_by_ref.cpp:74:7:74:7 | x | pass_by_ref.cpp:76:10:76:10 | x |
125
127
| test.cpp:3:16:3:17 | a0 | test.cpp:5:7:5:8 | a0 |
126
128
| test.cpp:3:24:3:25 | b0 | test.cpp:6:7:6:8 | b0 |
127
129
| test.cpp:3:32:3:33 | c0 | test.cpp:7:7:7:8 | c0 |
Original file line number Diff line number Diff line change 58
58
| pass_by_ref.cpp:46:7:46:7 | i | pass_by_ref.cpp:54:10:54:10 | i |
59
59
| pass_by_ref.cpp:60:7:60:7 | x | pass_by_ref.cpp:62:10:62:10 | x |
60
60
| pass_by_ref.cpp:66:8:66:8 | p | pass_by_ref.cpp:68:10:68:10 | p |
61
+ | pass_by_ref.cpp:74:7:74:7 | x | pass_by_ref.cpp:76:10:76:10 | x |
61
62
| test.cpp:3:16:3:17 | a0 | test.cpp:5:7:5:8 | a0 |
62
63
| test.cpp:3:24:3:25 | b0 | test.cpp:6:7:6:8 | b0 |
63
64
| test.cpp:3:32:3:33 | c0 | test.cpp:7:7:7:8 | c0 |
You can’t perform that action at this time.
0 commit comments