mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
C#: Add line span pragma example.
This commit is contained in:
12
csharp/ql/test/library-tests/csharp10/LinePragmas.cs
Normal file
12
csharp/ql/test/library-tests/csharp10/LinePragmas.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
|
||||
public class MyLineDirective
|
||||
{
|
||||
public static void M1()
|
||||
{
|
||||
#line (1, 1) - (1, 30) 5 "LinePragmasRef1.cs"
|
||||
int i = 0;
|
||||
#line (2, 1) - (5, 32) "LinePragmasRef2.cs"
|
||||
int j = 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user