Skip to content

Commit d4a8dbb

Browse files
committed
C++: Slightly modify a test so that we can see the effect of this change.
1 parent a5601ce commit d4a8dbb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

cpp/ql/test/library-tests/types/sizeof/sizeof.expected

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@
33
| sizeof.cpp:21:15:21:27 | sizeof(int *) | 8 | SizeofTypeOperator.getTypeOperand() | file://:0:0:0:0 | int * |
44
| sizeof.cpp:22:15:22:29 | sizeof(MyClass) | 16 | SizeofTypeOperator.getTypeOperand() | sizeof.cpp:4:7:4:13 | MyClass |
55
| sizeof.cpp:23:15:23:23 | sizeof(<expr>) | 4 | SizeofExprOperator.getExprOperand() | sizeof.cpp:23:22:23:22 | i |
6+
| sizeof.cpp:23:15:23:23 | sizeof(<expr>) | 4 | SizeofTypeOperator.getTypeOperand() | file://:0:0:0:0 | int |
67
| sizeof.cpp:24:15:24:23 | sizeof(<expr>) | 1 | SizeofExprOperator.getExprOperand() | sizeof.cpp:24:22:24:22 | c |
8+
| sizeof.cpp:24:15:24:23 | sizeof(<expr>) | 1 | SizeofTypeOperator.getTypeOperand() | file://:0:0:0:0 | char |
79
| sizeof.cpp:25:15:25:25 | sizeof(<expr>) | 8 | SizeofExprOperator.getExprOperand() | sizeof.cpp:25:22:25:24 | ptr |
10+
| sizeof.cpp:25:15:25:25 | sizeof(<expr>) | 8 | SizeofTypeOperator.getTypeOperand() | file://:0:0:0:0 | int * |
811
| sizeof.cpp:26:15:26:24 | sizeof(<expr>) | 16 | SizeofExprOperator.getExprOperand() | sizeof.cpp:26:22:26:23 | mc |
12+
| sizeof.cpp:26:15:26:24 | sizeof(<expr>) | 16 | SizeofTypeOperator.getTypeOperand() | sizeof.cpp:4:7:4:13 | MyClass |
913
| sizeof.cpp:27:15:27:25 | sizeof(<expr>) | 40 | SizeofExprOperator.getExprOperand() | sizeof.cpp:27:22:27:24 | arr |
14+
| sizeof.cpp:27:15:27:25 | sizeof(<expr>) | 40 | SizeofTypeOperator.getTypeOperand() | file://:0:0:0:0 | int[10] |
1015
| sizeof.cpp:28:16:28:29 | sizeof(<expr>) | 4 | SizeofExprOperator.getExprOperand() | sizeof.cpp:28:23:28:28 | access to array |
16+
| sizeof.cpp:28:16:28:29 | sizeof(<expr>) | 4 | SizeofTypeOperator.getTypeOperand() | file://:0:0:0:0 | int |

cpp/ql/test/library-tests/types/sizeof/sizeof.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import cpp
33
from SizeofOperator sto, string elemDesc, Element e
44
where
55
elemDesc = "SizeofTypeOperator.getTypeOperand()" and
6-
e = sto.(SizeofTypeOperator).getTypeOperand()
6+
e = sto.(SizeofOperator).getTypeOperand()
77
or
88
elemDesc = "SizeofExprOperator.getExprOperand()" and
99
e = sto.(SizeofExprOperator).getExprOperand()

0 commit comments

Comments
 (0)