Files
codeql/csharp/ql/test/library-tests/dataflow/global/Splitting.cs
2019-01-16 10:29:26 +01:00

18 lines
298 B
C#

class Splitting
{
void M1(bool b, string tainted)
{
if (b)
if (tainted == null)
return;
var x = Return(tainted);
Check(x);
if (b)
Check(x);
}
static void Check<T>(T x) { }
static T Return<T>(T x) => x;
}