mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
C#: Add (U)IntPtr parameter default test cases.
This commit is contained in:
@@ -27,6 +27,8 @@ public class Parameters
|
||||
public void M19([Optional, DecimalConstant(1, 0, 0, 0, 103)] decimal arg9) => throw null;
|
||||
public void M20([Optional, DefaultParameterValue(7)] MyStruct arg10) => throw null;
|
||||
public void M21([Optional, DefaultParameterValue("mystring")] MyStruct arg10) => throw null;
|
||||
public void M22(nuint arg11 = 0) => throw null;
|
||||
public void M23(nint arg12 = 0) => throw null;
|
||||
|
||||
public struct MyStruct
|
||||
{
|
||||
@@ -35,4 +37,4 @@ public class Parameters
|
||||
|
||||
}
|
||||
public enum MyEnum { A = 1, B = 2 }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,8 @@ public class ParametersDll
|
||||
public void M19([Optional, DecimalConstant(1, 0, 0, 0, 103)] decimal arg9) => throw null;
|
||||
public void M20([Optional, DefaultParameterValue(7)] MyStruct arg10) => throw null;
|
||||
public void M21([Optional, DefaultParameterValue("mystring")] MyStruct arg10) => throw null;
|
||||
public void M22(nuint arg11 = 0) => throw null;
|
||||
public void M23(nint arg12 = 0) => throw null;
|
||||
|
||||
public struct MyStruct
|
||||
{
|
||||
@@ -35,4 +37,4 @@ public class ParametersDll
|
||||
|
||||
}
|
||||
public enum MyEnum { A = 1, B = 2 }
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user