仿真平台内核初版 -tlib库 包含<sparc arm riscv powerPC>
This commit is contained in:
28
lib/CxxDemangler/Tests/Parsing/MangledName.cs
Normal file
28
lib/CxxDemangler/Tests/Parsing/MangledName.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace CxxDemangler.Tests.Parsing
|
||||
{
|
||||
[TestClass]
|
||||
public class MangledName : TestBase
|
||||
{
|
||||
[TestMethod]
|
||||
public void MangledNameData()
|
||||
{
|
||||
Verify("_Z3foo...",
|
||||
new Parsers.SourceName.Identifier("foo"));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void MangledNameFailures()
|
||||
{
|
||||
Assert.IsNull(Parse("_Y"));
|
||||
Assert.IsNull(Parse("_"));
|
||||
Assert.IsNull(Parse(""));
|
||||
}
|
||||
|
||||
internal override IParsingResult Parse(ParsingContext context)
|
||||
{
|
||||
return Parsers.MangledName.Parse(context);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user