CPP: Update test comments.

This commit is contained in:
Geoffrey White
2019-08-22 15:40:38 +01:00
parent c007d4ffd7
commit a70975f95f

View File

@@ -227,14 +227,14 @@ void test_lambdas()
auto a = [t, u]() -> int {
sink(t); // tainted
sink(u); // clean [FALSE POSITIVE]
sink(u); // clean
return t;
};
sink(a()); // tainted
auto b = [&] {
sink(t); // tainted
sink(u); // clean [FALSE POSITIVE]
sink(u); // clean
v = source(); // (v is reference captured)
};
b();
@@ -242,7 +242,7 @@ void test_lambdas()
auto c = [=] {
sink(t); // tainted
sink(u); // clean [FALSE POSITIVE]
sink(u); // clean
};
c();