File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed
cpp/ql/test/library-tests/dataflow/dataflow-tests Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,13 @@ uniqueEnclosingCallable
1010| test.cpp:1158:18:1158:42 | ... , ... | Node should have one enclosing callable but has 0. |
1111| test.cpp:1158:23:1158:31 | recursion | Node should have one enclosing callable but has 0. |
1212| test.cpp:1158:35:1158:40 | call to source | Node should have one enclosing callable but has 0. |
13+ | test.cpp:1318:13:1318:18 | call to source | Node should have one enclosing callable but has 0. |
1314uniqueCallEnclosingCallable
1415| test.cpp:864:47:864:54 | call to source | Call should have one enclosing callable but has 0. |
1516| test.cpp:872:46:872:51 | call to source | Call should have one enclosing callable but has 0. |
1617| test.cpp:1158:18:1158:21 | call to sink | Call should have one enclosing callable but has 0. |
1718| test.cpp:1158:35:1158:40 | call to source | Call should have one enclosing callable but has 0. |
19+ | test.cpp:1318:13:1318:18 | call to source | Call should have one enclosing callable but has 0. |
1820uniqueType
1921uniqueNodeLocation
2022missingLocation
Original file line number Diff line number Diff line change @@ -170,6 +170,7 @@ astFlow
170170| test.cpp:1308:7:1308:12 | call to source | test.cpp:1309:14:1309:16 | ... ++ |
171171| test.cpp:1312:7:1312:12 | call to source | test.cpp:1313:8:1313:24 | ... ? ... : ... |
172172| test.cpp:1312:7:1312:12 | call to source | test.cpp:1314:8:1314:8 | x |
173+ | test.cpp:1329:11:1329:16 | call to source | test.cpp:1330:10:1330:10 | i |
173174| true_upon_entry.cpp:17:11:17:16 | call to source | true_upon_entry.cpp:21:8:21:8 | x |
174175| true_upon_entry.cpp:27:9:27:14 | call to source | true_upon_entry.cpp:29:8:29:8 | x |
175176| true_upon_entry.cpp:33:11:33:16 | call to source | true_upon_entry.cpp:39:8:39:8 | x |
@@ -390,6 +391,7 @@ irFlow
390391| test.cpp:1308:7:1308:12 | call to source | test.cpp:1309:8:1309:16 | ... ++ |
391392| test.cpp:1312:7:1312:12 | call to source | test.cpp:1313:8:1313:24 | ... ? ... : ... |
392393| test.cpp:1312:7:1312:12 | call to source | test.cpp:1314:8:1314:8 | x |
394+ | test.cpp:1329:11:1329:16 | call to source | test.cpp:1330:10:1330:10 | i |
393395| true_upon_entry.cpp:9:11:9:16 | call to source | true_upon_entry.cpp:13:8:13:8 | x |
394396| true_upon_entry.cpp:17:11:17:16 | call to source | true_upon_entry.cpp:21:8:21:8 | x |
395397| true_upon_entry.cpp:27:9:27:14 | call to source | true_upon_entry.cpp:29:8:29:8 | x |
Original file line number Diff line number Diff line change @@ -1312,4 +1312,20 @@ void crement_test2(bool b, int y) {
13121312 x = source ();
13131313 sink (b ? (long )x++ : 0 ); // $ ir ast
13141314 sink (x); // $ ir ast
1315- }
1315+ }
1316+
1317+ struct nsdmi {
1318+ int i = source();
1319+
1320+ nsdmi () {}
1321+
1322+ nsdmi (int i) : i(i) {}
1323+ };
1324+
1325+ void nsdmi_test () {
1326+ nsdmi x;
1327+ sink (x.i ); // $ MISSING: ir ast
1328+
1329+ nsdmi y (source ());
1330+ sink (y.i ); // $ ir ast
1331+ }
You can’t perform that action at this time.
0 commit comments