Skip to content

Commit d8cfa71

Browse files
committed
C++: Fix testcase for conversion operator.
1 parent c1b997b commit d8cfa71

File tree

2 files changed

+2
-24
lines changed

2 files changed

+2
-24
lines changed

cpp/ql/test/library-tests/dataflow/taint-tests/atl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ void test_CStringT() {
11331133
CStringT<wchar_t> s10(wc);
11341134
sink(s10.GetString()); // $ ir
11351135

1136-
sink(&s1); // $ ast ir
1136+
sink(static_cast<CSimpleStringT<char>&>(s1)); // $ ast ir
11371137

11381138
auto bstr = s1.AllocSysString();
11391139
sink(bstr); // $ ir

cpp/ql/test/library-tests/dataflow/taint-tests/localTaint.expected

+1-23
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ WARNING: module 'TaintTracking' has been deprecated and may be removed in future
10261026
| atl.cpp:1099:15:1099:29 | call to source | atl.cpp:1104:21:1104:21 | v | |
10271027
| atl.cpp:1101:21:1101:21 | v | atl.cpp:1101:21:1101:22 | call to CStringT | TAINT |
10281028
| atl.cpp:1101:21:1101:22 | call to CStringT | atl.cpp:1102:8:1102:9 | s1 | |
1029-
| atl.cpp:1101:21:1101:22 | call to CStringT | atl.cpp:1136:9:1136:10 | s1 | |
1029+
| atl.cpp:1101:21:1101:22 | call to CStringT | atl.cpp:1136:43:1136:44 | s1 | |
10301030
| atl.cpp:1101:21:1101:22 | call to CStringT | atl.cpp:1138:15:1138:16 | s1 | |
10311031
| atl.cpp:1101:21:1101:22 | call to CStringT | atl.cpp:1172:8:1172:9 | s1 | |
10321032
| atl.cpp:1101:21:1101:22 | call to CStringT | atl.cpp:1178:8:1178:9 | s1 | |
@@ -1086,28 +1086,6 @@ WARNING: module 'TaintTracking' has been deprecated and may be removed in future
10861086
| atl.cpp:1133:25:1133:26 | wc | atl.cpp:1133:25:1133:27 | call to CStringT | TAINT |
10871087
| atl.cpp:1133:25:1133:27 | call to CStringT | atl.cpp:1134:8:1134:10 | s10 | |
10881088
| atl.cpp:1133:25:1133:27 | call to CStringT | atl.cpp:1212:1:1212:1 | s10 | |
1089-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1136:9:1136:10 | s1 [inner post update] | |
1090-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1138:15:1138:16 | s1 | |
1091-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1172:8:1172:9 | s1 | |
1092-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1178:8:1178:9 | s1 | |
1093-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1179:8:1179:9 | s1 | |
1094-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1180:8:1180:9 | s1 | |
1095-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1181:8:1181:9 | s1 | |
1096-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1194:3:1194:4 | s1 | |
1097-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1197:8:1197:9 | s1 | |
1098-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1198:8:1198:9 | s1 | |
1099-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1201:8:1201:9 | s1 | |
1100-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1203:8:1203:9 | s1 | |
1101-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1204:8:1204:9 | s1 | |
1102-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1205:8:1205:9 | s1 | |
1103-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1206:8:1206:9 | s1 | |
1104-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1207:8:1207:9 | s1 | |
1105-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1208:8:1208:9 | s1 | |
1106-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1209:8:1209:9 | s1 | |
1107-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1210:8:1210:9 | s1 | |
1108-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1211:8:1211:9 | s1 | |
1109-
| atl.cpp:1136:8:1136:10 | ref arg & ... | atl.cpp:1212:1:1212:1 | s1 | |
1110-
| atl.cpp:1136:9:1136:10 | s1 | atl.cpp:1136:8:1136:10 | & ... | |
11111089
| atl.cpp:1138:15:1138:16 | ref arg s1 | atl.cpp:1172:8:1172:9 | s1 | |
11121090
| atl.cpp:1138:15:1138:16 | ref arg s1 | atl.cpp:1178:8:1178:9 | s1 | |
11131091
| atl.cpp:1138:15:1138:16 | ref arg s1 | atl.cpp:1179:8:1179:9 | s1 | |

0 commit comments

Comments
 (0)