Skip to content

Commit 9390b48

Browse files
committed
C#: Add (U)IntPtr parameter default test cases.
1 parent 71d09b7 commit 9390b48

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

csharp/ql/test/library-tests/parameters/Parameters.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public class Parameters
2727
public void M19([Optional, DecimalConstant(1, 0, 0, 0, 103)] decimal arg9) => throw null;
2828
public void M20([Optional, DefaultParameterValue(7)] MyStruct arg10) => throw null;
2929
public void M21([Optional, DefaultParameterValue("mystring")] MyStruct arg10) => throw null;
30+
public void M22(nuint arg11 = 0) => throw null;
31+
public void M23(nint arg12 = 0) => throw null;
3032

3133
public struct MyStruct
3234
{
@@ -35,4 +37,4 @@ public struct MyStruct
3537

3638
}
3739
public enum MyEnum { A = 1, B = 2 }
38-
}
40+
}

csharp/ql/test/library-tests/parameters/Parameters.cs_

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public class ParametersDll
2727
public void M19([Optional, DecimalConstant(1, 0, 0, 0, 103)] decimal arg9) => throw null;
2828
public void M20([Optional, DefaultParameterValue(7)] MyStruct arg10) => throw null;
2929
public void M21([Optional, DefaultParameterValue("mystring")] MyStruct arg10) => throw null;
30+
public void M22(nuint arg11 = 0) => throw null;
31+
public void M23(nint arg12 = 0) => throw null;
3032

3133
public struct MyStruct
3234
{
@@ -35,4 +37,4 @@ public class ParametersDll
3537

3638
}
3739
public enum MyEnum { A = 1, B = 2 }
38-
}
40+
}
Binary file not shown.

0 commit comments

Comments
 (0)