We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b16067 commit a4388e9Copy full SHA for a4388e9
cpp/ql/test/library-tests/dataflow/fields/simple.cpp
@@ -144,4 +144,28 @@ void test_deep_structs_setter() {
144
read_from_y_deref(&d3.d2_2);
145
}
146
147
+struct Inner
148
+{
149
+ int f;
150
+ int g;
151
+};
152
+
153
+struct Outer
154
155
+ Inner inner;
156
+ int h;
157
158
159
+void read_f(Inner *inner)
160
161
+ sink(inner->f); //$ast $f-:ir
162
+}
163
164
+void test()
165
166
+ Outer outer;
167
+ outer.inner.f = user_input();
168
+ read_f(&outer.inner);
169
170
171
} // namespace Simple
0 commit comments