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 197642c commit 2fd07f2Copy full SHA for 2fd07f2
cpp/ql/test/library-tests/dataflow/fields/simple.cpp
@@ -120,4 +120,20 @@ void post_update_to_phi_input(bool b)
120
sink(a.i); // $ ast,ir
121
}
122
123
-} // namespace Simple
+void write_to_param(int* p) {
124
+ *p = user_input();
125
+}
126
+
127
+void alias_with_fields(bool b) {
128
+ A a;
129
+ int* q;
130
+ if(b) {
131
+ q = &a.i;
132
+ } else {
133
+ q = nullptr;
134
+ }
135
+ write_to_param(q);
136
+ sink(a.i); // $ MISSING: ast,ir
137
138
139
+} // namespace Simple
0 commit comments