Skip to content

Commit 6d95105

Browse files
committed
C#: Adjust test for nint/nuint
1 parent 81b03bf commit 6d95105

File tree

4 files changed

+3
-19
lines changed

4 files changed

+3
-19
lines changed

csharp/ql/test/library-tests/csharp9/NativeInt.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
public class Class1
3+
public class NativeInt
44
{
55
public void M1(int j, uint k)
66
{

csharp/ql/test/library-tests/csharp9/PrintAst.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Discard.cs:
4848
# 10| 0: [ReturnStmt] return ...;
4949
# 10| 0: [IntLiteral] 0
5050
NativeInt.cs:
51-
# 3| [Class] Class1
51+
# 3| [Class] NativeInt
5252
# 5| 5: [Method] M1
5353
# 5| -1: [TypeMention] Void
5454
#-----| 2: (Parameters)

csharp/ql/test/library-tests/csharp9/nativeInt.expected

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
| Discard.cs:7:29:7:29 | access to local variable i | Func<Int32,Int32,Int32> |
2-
| Discard.cs:7:29:7:52 | Func<Int32,Int32,Int32> i = ... | Func<Int32,Int32,Int32> |
3-
| Discard.cs:7:33:7:52 | (...) => ... | Func<Int32,Int32,Int32> |
4-
| Discard.cs:7:51:7:52 | 42 | Int32 |
5-
| Discard.cs:8:9:8:9 | access to local variable i | Func<Int32,Int32,Int32> |
6-
| Discard.cs:8:9:8:24 | ... = ... | Func<Int32,Int32,Int32> |
7-
| Discard.cs:8:13:8:24 | (...) => ... | Func<Int32,Int32,Int32> |
8-
| Discard.cs:8:23:8:24 | 42 | Int32 |
9-
| Discard.cs:9:9:9:9 | access to local variable i | Func<Int32,Int32,Int32> |
10-
| Discard.cs:9:9:9:32 | ... = ... | Func<Int32,Int32,Int32> |
11-
| Discard.cs:9:13:9:32 | (...) => ... | Func<Int32,Int32,Int32> |
12-
| Discard.cs:9:31:9:32 | 42 | Int32 |
13-
| Discard.cs:10:9:10:9 | access to local variable i | Func<Int32,Int32,Int32> |
14-
| Discard.cs:10:9:10:49 | ... = ... | Func<Int32,Int32,Int32> |
15-
| Discard.cs:10:13:10:49 | delegate(...) { ... } | Func<Int32,Int32,Int32> |
16-
| Discard.cs:10:46:10:46 | 0 | Int32 |
171
| NativeInt.cs:7:14:7:14 | access to local variable x | IntPtr |
182
| NativeInt.cs:7:14:7:18 | IntPtr x = ... | IntPtr |
193
| NativeInt.cs:7:18:7:18 | (...) ... | IntPtr |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import csharp
22

33
from Expr e
4-
where e.fromSource()
4+
where e.getFile().getStem() = "NativeInt"
55
select e, e.getType().toString()

0 commit comments

Comments
 (0)