Skip to content

Commit ad55744

Browse files
committed
C#: Add model generator test case for property.
1 parent 057a420 commit ad55744

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

csharp/ql/test/utils/modelgenerator/dataflow/Summaries.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,4 +544,22 @@ public override string Id(string x)
544544
return x;
545545
}
546546
}
547+
548+
public interface IPublic3
549+
{
550+
string Prop { get; }
551+
}
552+
553+
public abstract class D : IPublic3
554+
{
555+
public abstract string Prop { get; }
556+
}
557+
558+
public class DImpl : D
559+
{
560+
private string tainted;
561+
562+
// summary=Models;Inheritance+IPublic3;true;get_Prop;();;Argument[this];ReturnValue;taint;df-generated
563+
public override string Prop { get { return tainted; } }
564+
}
547565
}

0 commit comments

Comments
 (0)