Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e45ea90 commit 1c0fdefCopy full SHA for 1c0fdef
2 files changed
cpp/ql/test/library-tests/access/FieldAccess/FieldAccess.cpp
@@ -96,3 +96,22 @@ class MyClass {
96
97
int x, y;
98
};
99
+
100
+class MyHasDestructor1 {
101
+public:
102
+ ~MyHasDestructor1() {
103
+ // ...
104
+ }
105
+};
106
107
+class MyHasDestructor2 {
108
109
+ int x;
110
+ MyHasDestructor1 v;
111
112
+ ~MyHasDestructor2() {
113
+ x++; // PointerFieldAccess, the `this->` is generated rather than implicit.
114
115
+ // ImplicitThisFieldAccess on call `v`s destructor.
116
117
cpp/ql/test/library-tests/access/FieldAccess/FieldAccess.expected
@@ -24,3 +24,5 @@
24
| FieldAccess.cpp:93:18:93:18 | y | ptr |
25
| FieldAccess.cpp:94:11:94:11 | y | ptr |
26
| FieldAccess.cpp:94:20:94:20 | y | val |
27
+| FieldAccess.cpp:113:5:113:5 | x | ptr |
28
+| FieldAccess.cpp:116:3:116:3 | v | this |
0 commit comments