C++: Modify IR field flow tests to use InlineExpectationsTest.qll

This commit is contained in:
Mathias Vorreiter Pedersen
2020-05-14 11:11:21 +02:00
parent 34314d0cb6
commit f5f3405ec3
16 changed files with 126 additions and 1039 deletions

View File

@@ -25,8 +25,8 @@ public:
void bar(Foo &f)
{
sink(f.a()); // flow (through `f` and `h`) [NOT DETECTED by IR]
sink(f.b()); // flow (through `g` and `h`) [NOT DETECTED by IR]
sink(f.a()); //$ast=flow 34:11 $ast=flow 36:11 $f-:ir=flow
sink(f.b()); //$ast=flow 35:14 $ast=flow 36:25 $f-:ir=flow
}
void foo()