File tree 2 files changed +15
-0
lines changed
csharp/ql/test/library-tests/csharp11
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -599,6 +599,19 @@ Strings.cs:
599
599
# 46| -1: [TypeMention] string
600
600
# 46| 0: [LocalVariableAccess] access to local variable y
601
601
# 46| 1: [StringLiteralUtf16] "AUTH16: "
602
+ # 49| 2: [LocalVariableDeclStmt] ... ...;
603
+ # 49| 0: [LocalVariableDeclAndInitExpr] ReadOnlySpan<Byte> z = ...
604
+ # 49| -1: [TypeMention] ReadOnlySpan<byte>
605
+ # 49| 0: [LocalVariableAccess] access to local variable z
606
+ # 49| 1: [StringLiteralUtf8] "AUTH8:
607
+ # 49| <username> "
608
+ # 53| 3: [LocalVariableDeclStmt] ... ...;
609
+ # 53| 0: [LocalVariableDeclAndInitExpr] ReadOnlySpan<Byte> w = ...
610
+ # 53| -1: [TypeMention] ReadOnlySpan<byte>
611
+ # 53| 0: [LocalVariableAccess] access to local variable w
612
+ # 53| 1: [StringLiteralUtf8] "The nested message
613
+ # 53| is UTF-8 encoded and
614
+ # 53| spans multiple lines."
602
615
cil/class1.cs:
603
616
# 4| [Class] Class1
604
617
# 6| 5: [Method] Main
Original file line number Diff line number Diff line change @@ -19,3 +19,5 @@ stringliterals
19
19
| Strings.cs:35:57:35:57 | "}" | StringLiteralUtf16 | String |
20
20
| Strings.cs:43:17:43:27 | "AUTH8: " | StringLiteralUtf8 | ReadOnlySpan<Byte> |
21
21
| Strings.cs:46:17:46:26 | "AUTH16: " | StringLiteralUtf16 | String |
22
+ | Strings.cs:49:17:50:22 | "AUTH8: \n <username> " | StringLiteralUtf8 | ReadOnlySpan<Byte> |
23
+ | Strings.cs:53:17:57:13 | "The nested message\n is UTF-8 encoded and\nspans multiple lines." | StringLiteralUtf8 | ReadOnlySpan<Byte> |
You can’t perform that action at this time.
0 commit comments