Skip to content

Commit 02f9aec

Browse files
committed
C#: Add some spurious summary generation examples.
1 parent b628c2e commit 02f9aec

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,18 @@ public Int32 M4(Int32 i)
430430
{
431431
return i;
432432
}
433+
434+
// SPURIOUS-summary=Models;SimpleTypes;false;M5;(System.DateTime);;Argument[0];ReturnValue;taint;df-generated
435+
public DateTime M5(DateTime d)
436+
{
437+
return d;
438+
}
439+
440+
// SPURIOUS-summary=Models;SimpleTypes;false;M6;(System.Type);;Argument[0];ReturnValue;taint;df-generated
441+
public Type M6(Type t)
442+
{
443+
return t;
444+
}
433445
}
434446

435447
// No models as higher order methods are excluded

0 commit comments

Comments
 (0)