Skip to content

Commit

Permalink
Add a disabled test for sequence points in all members
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillOsenkov committed Jul 2, 2023
1 parent 4a7d975 commit 467cbe1
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ICSharpCode.Decompiler.Tests/PdbGenerationTestRunner.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using System.Linq;
using System.Reflection.Metadata;
Expand Down Expand Up @@ -43,6 +43,13 @@ public void LambdaCapturing()
TestGeneratePdb();
}

[Test]
[Ignore("Duplicate sequence points for local function")]
public void Members()
{
TestGeneratePdb();
}

[Test]
public void CustomPdbId()
{
Expand Down
83 changes: 83 additions & 0 deletions ICSharpCode.Decompiler.Tests/TestCases/PdbGen/Members.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?xml version="1.0" encoding="utf-8"?>
<symbols>
<files>
<file id="1" name="ICSharpCode.Decompiler.Tests.TestCases.PdbGen\Members.cs" language="C#" checksumAlgorithm="SHA256"><![CDATA[using System;
class C : IDisposable
{
static C()
{
}
public C()
{
}
~C()
{
}
int ExpressionProperty => 42;
int Property
{
get { return 0; }
set { }
}
C this[int index]
{
get => null;
}
C this[string s]
{
get { return null; }
set { }
}
public static implicit operator C(int i)
{
return null;
}
public event Action Event
{
add
{
}
remove
{
}
}
void IDisposable.Dispose()
{
}
static void Main()
{
var c = new C();
c.Event += () => { };
_ = c.Property;
_ = c.ExpressionProperty;
_ = c[0];
_ = c[""];
c = 1;
Local();
void Local()
{
}
}
}
]]></file>
</files>
<methods>
</methods>
<method-spans>
</method-spans>
</symbols>

0 comments on commit 467cbe1

Please sign in to comment.