diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/CXXMethodDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/CXXMethodDeclarationTest.cs
deleted file mode 100644
index 05f77d4c..00000000
--- a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/CXXMethodDeclarationTest.cs
+++ /dev/null
@@ -1,146 +0,0 @@
-// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
-
-using System.Threading.Tasks;
-using NUnit.Framework;
-
-namespace ClangSharp.UnitTests;
-
-public abstract class CXXMethodDeclarationTest : PInvokeGeneratorTest
-{
- [Test]
- public Task ConstructorTest() => ConstructorTestImpl();
-
- [Test]
- public Task ConstructorWithInitializeTest() => ConstructorWithInitializeTestImpl();
-
- [Test]
- public Task ConversionTest() => ConversionTestImpl();
-
- [Test]
- public Task DefaultParameterInheritedFromTemplateTest() => DefaultParameterInheritedFromTemplateTestImpl();
-
- [Test]
- public Task DestructorTest() => DestructorTestImpl();
-
- [Test]
- public Task InstanceTest() => InstanceTestImpl();
-
- [Test]
- public Task MemberCallTest() => MemberCallTestImpl();
-
- [Test]
- public Task MemberTest() => MemberTestImpl();
-
- [Test]
- public Task NewKeywordTest() => NewKeywordTestImpl();
-
- [Test]
- public Task NewKeywordVirtualTest() => NewKeywordVirtualTestImpl();
-
- [Test]
- public Task NewKeywordVirtualWithExplicitVtblTest() => NewKeywordVirtualWithExplicitVtblTestImpl();
-
- [Test]
- public Task NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest() => NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTestImpl();
-
- [Test]
- public Task OperatorTest() => OperatorTestImpl();
-
- [Test]
- public Task OperatorCallTest() => OperatorCallTestImpl();
-
- [Test]
- public Task StaticTest() => StaticTestImpl();
-
- [Test]
- public Task ThisTest() => ThisTestImpl();
-
- [Test]
- public Task UnsafeDoesNotImpactDllImportTest() => UnsafeDoesNotImpactDllImportTestImpl();
-
- [Test]
- public Task VirtualTest() => VirtualTestImpl();
-
- [Test]
- public Task VirtualWithVtblIndexAttributeTest() => VirtualWithVtblIndexAttributeTestImpl();
-
- [Test]
- public virtual Task MacrosExpansionTest()
- {
- var inputContents = @"typedef struct
-{
- unsigned char *buf;
- int size;
-} context_t;
-
-int buf_close(void *pContext)
-{
- ((context_t*)pContext)->buf=0;
- return 0;
-}
-";
-
- var expectedOutputContents = @"namespace ClangSharp.Test
-{
- public unsafe partial struct context_t
- {
- [NativeTypeName(""unsigned char *"")]
- public byte* buf;
-
- public int size;
- }
-
- public static unsafe partial class Methods
- {
- public static int buf_close(void* pContext)
- {
- ((context_t*)(pContext))->buf = null;
- return 0;
- }
- }
-}
-";
-
- return ValidateBindingsAsync(inputContents, expectedOutputContents);
- }
-
- protected abstract Task ConstructorTestImpl();
-
- protected abstract Task ConstructorWithInitializeTestImpl();
-
- protected abstract Task ConversionTestImpl();
-
- protected abstract Task DefaultParameterInheritedFromTemplateTestImpl();
-
- protected abstract Task DestructorTestImpl();
-
- protected abstract Task InstanceTestImpl();
-
- protected abstract Task MemberCallTestImpl();
-
- protected abstract Task MemberTestImpl();
-
- protected abstract Task NewKeywordTestImpl();
-
- protected abstract Task NewKeywordVirtualTestImpl();
-
- protected abstract Task NewKeywordVirtualWithExplicitVtblTestImpl();
-
- protected abstract Task NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTestImpl();
-
- protected abstract Task OperatorTestImpl();
-
- protected abstract Task OperatorCallTestImpl();
-
- protected abstract Task StaticTestImpl();
-
- protected abstract Task ThisTestImpl();
-
- protected abstract Task UnsafeDoesNotImpactDllImportTestImpl();
-
- protected abstract Task VirtualTestImpl();
-
- protected abstract Task VirtualWithVtblIndexAttributeTestImpl();
-
- protected abstract Task ValidateBindingsAsync(string inputContents, string expectedOutputContents);
-}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/CXXMethodDeclarationXmlTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/CXXMethodDeclarationXmlTest.cs
deleted file mode 100644
index 6c828d97..00000000
--- a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/CXXMethodDeclarationXmlTest.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
-
-using System.Threading.Tasks;
-using NUnit.Framework;
-
-namespace ClangSharp.UnitTests;
-
-public abstract class CXXMethodDeclarationXmlTest: CXXMethodDeclarationTest
-{
- [Test]
- public override Task MacrosExpansionTest()
- {
- var inputContents = @"typedef struct
-{
- unsigned char *buf;
- int size;
-} context_t;
-
-int buf_close(void *pcontext)
-{
- ((context_t*)pcontext)->buf=0;
- return 0;
-}
-";
-
- var expectedOutputContents = @"
-
-
-
-
- byte*
-
-
- int
-
-
-
-
- int
-
- void*
-
- ((context_t*)(pcontext))->buf = null;
- return 0;
-
-
-
-
-";
-
- return ValidateBindingsAsync(inputContents, expectedOutputContents);
- }
-}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/DeprecatedToObsoleteTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/DeprecatedToObsoleteTest.cs
deleted file mode 100644
index f062c262..00000000
--- a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/DeprecatedToObsoleteTest.cs
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
-
-using System.Threading.Tasks;
-using NUnit.Framework;
-
-namespace ClangSharp.UnitTests;
-
-public abstract class DeprecatedToObsoleteTest : PInvokeGeneratorTest
-{
- [TestCase("int", "int")]
- public Task SimpleStructMembers(string nativeType, string expectedManagedType) => SimpleStructMembersImpl(nativeType, expectedManagedType);
-
- [Test]
- public Task StructDecl() => StructDeclImpl();
-
- [TestCase("int", "int")]
- public Task SimpleTypedefStructMembers(string nativeType, string expectedManagedType) => SimpleTypedefStructMembersImpl(nativeType, expectedManagedType);
-
- [Test]
- public Task TypedefStructDecl() => TypedefStructDeclImpl();
-
- [Test]
- public Task SimpleEnumMembers() => SimpleEnumMembersImpl();
-
- [Test]
- public Task EnumDecl() => EnumDeclImpl();
-
- [TestCase("int", "int")]
- public Task SimpleVarDecl(string nativeType, string expectedManagedType) => SimpleVarDeclImpl(nativeType, expectedManagedType);
-
- [Test]
- public Task FuncDecl() => FuncDeclImpl();
-
- [Test]
- public Task InstanceFunc() => InstanceFuncImpl();
-
- [Test]
- public Task FuncPtrDecl() => FuncPtrDeclImpl();
-
- [Test]
- public Task FuncDeclDllImport() => FuncDllImportImpl();
-
- protected abstract Task SimpleStructMembersImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task StructDeclImpl();
-
- protected abstract Task SimpleTypedefStructMembersImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task TypedefStructDeclImpl();
-
- protected abstract Task SimpleEnumMembersImpl();
-
- protected abstract Task EnumDeclImpl();
-
- protected abstract Task SimpleVarDeclImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task FuncDeclImpl();
-
- protected abstract Task InstanceFuncImpl();
-
- protected abstract Task FuncPtrDeclImpl();
-
- protected abstract Task FuncDllImportImpl();
-}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/EnumDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/EnumDeclarationTest.cs
deleted file mode 100644
index 1048a150..00000000
--- a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/EnumDeclarationTest.cs
+++ /dev/null
@@ -1,112 +0,0 @@
-// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
-
-using System.Threading.Tasks;
-using NUnit.Framework;
-
-namespace ClangSharp.UnitTests;
-
-public abstract class EnumDeclarationTest : PInvokeGeneratorTest
-{
- protected static readonly string[] ExcludeTestExcludedNames = ["MyEnum"];
-
- [Test]
- public Task BasicTest() => BasicTestImpl();
-
- [Test]
- public Task BasicValueTest() => BasicValueTestImpl();
-
- [Test]
- public Task ExcludeTest() => ExcludeTestImpl();
-
- [TestCase("short", "short")]
- public Task ExplicitTypedTest(string nativeType, string expectedManagedType) => ExplicitTypedTestImpl(nativeType, expectedManagedType);
-
- [TestCase("unsigned char", "byte")]
- [TestCase("long long", "long")]
- [TestCase("signed char", "sbyte")]
- [TestCase("unsigned short", "ushort")]
- [TestCase("unsigned int", "uint")]
- [TestCase("unsigned long long", "ulong")]
- public Task ExplicitTypedWithNativeTypeNameTest(string nativeType, string expectedManagedType) => ExplicitTypedWithNativeTypeNameTestImpl(nativeType, expectedManagedType);
-
- [Test]
- public Task RemapTest() => RemapTestImpl();
-
- [Test]
- public Task WithAttributeTest() => WithAttributeTestImpl();
-
- [Test]
- public Task WithNamespaceTest() => WithNamespaceTestImpl();
-
- [Test]
- public Task WithNamespaceStarTest() => WithNamespaceStarTestImpl();
-
- [Test]
- public Task WithNamespaceStarPlusTest() => WithNamespaceStarPlusTestImpl();
-
- [Test]
- public Task WithCastToEnumType() => WithCastToEnumTypeImpl();
-
- [Test]
- public Task WithMultipleEnumsTest() => WithMultipleEnumsTestImpl();
-
- [Test]
- public Task WithImplicitConversionTest() => WithImplicitConversionTestImpl();
-
- [Test]
- public Task WithTypeTest() => WithTypeTestImpl();
-
- [Test]
- public Task WithTypeAndImplicitConversionTest() => WithTypeAndImplicitConversionTestImpl();
-
- [Test]
- public Task WithTypeStarTest() => WithTypeStarTestImpl();
-
- [Test]
- public Task WithTypeStarOverrideTest() => WithTypeStarOverrideTestImpl();
-
- [Test]
- public Task WithAnonymousEnumTest() => WithAnonymousEnumTestImpl();
-
- [Test]
- public Task WithReferenceToAnonymousEnumEnumeratorTest() => WithReferenceToAnonymousEnumEnumeratorTestImpl();
-
- protected abstract Task BasicTestImpl();
-
- protected abstract Task BasicValueTestImpl();
-
- protected abstract Task ExcludeTestImpl();
-
- protected abstract Task ExplicitTypedTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task ExplicitTypedWithNativeTypeNameTestImpl(string nativeType, string expectedManagedType);
-
-
- protected abstract Task RemapTestImpl();
-
- protected abstract Task WithAttributeTestImpl();
-
- protected abstract Task WithNamespaceTestImpl();
-
- protected abstract Task WithNamespaceStarTestImpl();
-
- protected abstract Task WithNamespaceStarPlusTestImpl();
-
- protected abstract Task WithCastToEnumTypeImpl();
-
- protected abstract Task WithMultipleEnumsTestImpl();
-
- protected abstract Task WithImplicitConversionTestImpl();
-
- protected abstract Task WithTypeTestImpl();
-
- protected abstract Task WithTypeAndImplicitConversionTestImpl();
-
- protected abstract Task WithTypeStarTestImpl();
-
- protected abstract Task WithTypeStarOverrideTestImpl();
-
- protected abstract Task WithAnonymousEnumTestImpl();
-
- protected abstract Task WithReferenceToAnonymousEnumEnumeratorTestImpl();
-}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/FunctionDeclarationBodyImportTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/FunctionDeclarationBodyImportTest.cs
deleted file mode 100644
index 52727f75..00000000
--- a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/FunctionDeclarationBodyImportTest.cs
+++ /dev/null
@@ -1,288 +0,0 @@
-// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
-
-using System.Threading.Tasks;
-using NUnit.Framework;
-
-namespace ClangSharp.UnitTests;
-
-public abstract class FunctionDeclarationBodyImportTest : PInvokeGeneratorTest
-{
- [Test]
- public Task AccessUnionMemberTest() => AccessUnionMemberTestImpl();
-
- [Test]
- public Task ArraySubscriptTest() => ArraySubscriptTestImpl();
-
- [Test]
- public Task BasicTest() => BasicTestImpl();
-
- [TestCase("%")]
- [TestCase("%=")]
- [TestCase("&")]
- [TestCase("&=")]
- [TestCase("*")]
- [TestCase("*=")]
- [TestCase("+")]
- [TestCase("+=")]
- [TestCase("-")]
- [TestCase("-=")]
- [TestCase("/")]
- [TestCase("/=")]
- [TestCase("<<")]
- [TestCase("<<=")]
- [TestCase("=")]
- [TestCase(">>")]
- [TestCase(">>=")]
- [TestCase("^")]
- [TestCase("^=")]
- [TestCase("|")]
- [TestCase("|=")]
- public Task BinaryOperatorBasicTest(string opcode) => BinaryOperatorBasicTestImpl(opcode);
-
- [TestCase("==")]
- [TestCase("!=")]
- [TestCase("<")]
- [TestCase("<=")]
- [TestCase(">")]
- [TestCase(">=")]
- public Task BinaryOperatorCompareTest(string opcode) => BinaryOperatorCompareTestImpl(opcode);
-
- [TestCase("&&")]
- [TestCase("||")]
- public Task BinaryOperatorBooleanTest(string opcode) => BinaryOperatorBooleanTestImpl(opcode);
-
- [Test]
- public Task BreakTest() => BreakTestImpl();
-
- [Test]
- public Task CallFunctionTest() => CallFunctionTestImpl();
-
- [Test]
- public Task CallFunctionWithArgsTest() => CallFunctionWithArgsTestImpl();
-
- [Test]
- public Task CaseTest() => CaseTestImpl();
-
- [Test]
- public Task CaseNoCompoundTest() => CaseNoCompoundTestImpl();
-
- [Test]
- public Task CompareMultipleEnumTest() => CompareMultipleEnumTestImpl();
-
- [Test]
- public Task ConditionalOperatorTest() => ConditionalOperatorTestImpl();
-
- [Test]
- public Task ContinueTest() => ContinueTestImpl();
-
- [Test]
- public Task CStyleFunctionalCastTest() => CStyleFunctionalCastTestImpl();
-
- [Test]
- public Task CxxFunctionalCastTest() => CxxFunctionalCastTestImpl();
-
- [Test]
- public Task CxxConstCastTest() => CxxConstCastTestImpl();
-
- [Test]
- public Task CxxDynamicCastTest() => CxxDynamicCastTestImpl();
-
- [Test]
- public Task CxxReinterpretCastTest() => CxxReinterpretCastTestImpl();
-
- [Test]
- public Task CxxStaticCastTest() => CxxStaticCastTestImpl();
-
- [Test]
- public Task DeclTest() => DeclTestImpl();
-
- [Test]
- public Task DoTest() => DoTestImpl();
-
- [Test]
- public Task DoNonCompoundTest() => DoNonCompoundTestImpl();
-
- [Test]
- public Task ForTest() => ForTestImpl();
-
- [Test]
- public Task ForNonCompoundTest() => ForNonCompoundTestImpl();
-
- [Test]
- public Task IfTest() => IfTestImpl();
-
- [Test]
- public Task IfElseTest() => IfElseTestImpl();
-
- [Test]
- public Task IfElseIfTest() => IfElseIfTestImpl();
-
- [Test]
- public Task IfElseNonCompoundTest() => IfElseNonCompoundTestImpl();
-
- [Test]
- public Task InitListForArrayTest() => InitListForArrayTestImpl();
-
- [Test]
- public Task InitListForRecordDeclTest() => InitListForRecordDeclTestImpl();
-
- [Test]
- public Task MemberTest() => MemberTestImpl();
-
- [Test]
- public Task RefToPtrTest() => RefToPtrTestImpl();
-
- [Test]
- public Task ReturnCXXNullPtrTest() => ReturnCXXNullPtrTestImpl();
-
- [TestCase("false")]
- [TestCase("true")]
- public Task ReturnCXXBooleanLiteralTest(string value) => ReturnCXXBooleanLiteralTestImpl(value);
-
- [TestCase("5e-1")]
- [TestCase("3.14")]
- public Task ReturnFloatingLiteralDoubleTest(string value) => ReturnFloatingLiteralDoubleTestImpl(value);
-
- [TestCase("5e-1f")]
- [TestCase("3.14f")]
- public Task ReturnFloatingLiteralSingleTest(string value) => ReturnFloatingLiteralSingleTestImpl(value);
-
- [Test]
- public Task ReturnEmptyTest() => ReturnEmptyTestImpl();
-
- [Test]
- public Task ReturnIntegerLiteralInt32Test() => ReturnIntegerLiteralInt32TestImpl();
-
- [Test]
- public Task ReturnStructTest() => ReturnStructTestImpl();
-
- [Test]
- public Task SwitchTest() => SwitchTestImpl();
-
- [Test]
- public Task SwitchNonCompoundTest() => SwitchNonCompoundTestImpl();
-
- [Test]
- public Task UnaryOperatorAddrOfTest() => UnaryOperatorAddrOfTestImpl();
-
- [Test]
- public Task UnaryOperatorDerefTest() => UnaryOperatorDerefTestImpl();
-
- [Test]
- public Task UnaryOperatorLogicalNotTest() => UnaryOperatorLogicalNotTestImpl();
-
- [TestCase("++")]
- [TestCase("--")]
- public Task UnaryOperatorPostfixTest(string opcode) => UnaryOperatorPostfixTestImpl(opcode);
-
- [TestCase("+")]
- [TestCase("++")]
- [TestCase("-")]
- [TestCase("--")]
- [TestCase("~")]
- public Task UnaryOperatorPrefixTest(string opcode) => UnaryOperatorPrefixTestImpl(opcode);
-
- [Test]
- public Task WhileTest() => WhileTestImpl();
-
- [Test]
- public Task WhileNonCompoundTest() => WhileNonCompoundTestImpl();
-
- protected abstract Task AccessUnionMemberTestImpl();
-
- protected abstract Task ArraySubscriptTestImpl();
-
- protected abstract Task BasicTestImpl();
-
- protected abstract Task BinaryOperatorBasicTestImpl(string opcode);
-
- protected abstract Task BinaryOperatorCompareTestImpl(string opcode);
-
- protected abstract Task BinaryOperatorBooleanTestImpl(string opcode);
-
- protected abstract Task BreakTestImpl();
-
- protected abstract Task CallFunctionTestImpl();
-
- protected abstract Task CallFunctionWithArgsTestImpl();
-
- protected abstract Task CaseTestImpl();
-
- protected abstract Task CaseNoCompoundTestImpl();
-
- protected abstract Task CompareMultipleEnumTestImpl();
-
- protected abstract Task ConditionalOperatorTestImpl();
-
- protected abstract Task ContinueTestImpl();
-
- protected abstract Task CStyleFunctionalCastTestImpl();
-
- protected abstract Task CxxFunctionalCastTestImpl();
-
- protected abstract Task CxxConstCastTestImpl();
-
- protected abstract Task CxxDynamicCastTestImpl();
-
- protected abstract Task CxxReinterpretCastTestImpl();
-
- protected abstract Task CxxStaticCastTestImpl();
-
- protected abstract Task DeclTestImpl();
-
- protected abstract Task DoTestImpl();
-
- protected abstract Task DoNonCompoundTestImpl();
-
- protected abstract Task ForTestImpl();
-
- protected abstract Task ForNonCompoundTestImpl();
-
- protected abstract Task IfTestImpl();
-
- protected abstract Task IfElseTestImpl();
-
- protected abstract Task IfElseIfTestImpl();
-
- protected abstract Task IfElseNonCompoundTestImpl();
-
- protected abstract Task InitListForArrayTestImpl();
-
- protected abstract Task InitListForRecordDeclTestImpl();
-
- protected abstract Task MemberTestImpl();
-
- protected abstract Task RefToPtrTestImpl();
-
- protected abstract Task ReturnCXXNullPtrTestImpl();
-
- protected abstract Task ReturnCXXBooleanLiteralTestImpl(string value);
-
- protected abstract Task ReturnFloatingLiteralDoubleTestImpl(string value);
-
- protected abstract Task ReturnFloatingLiteralSingleTestImpl(string value);
-
- protected abstract Task ReturnEmptyTestImpl();
-
- protected abstract Task ReturnIntegerLiteralInt32TestImpl();
-
- protected abstract Task ReturnStructTestImpl();
-
- protected abstract Task SwitchTestImpl();
-
- protected abstract Task SwitchNonCompoundTestImpl();
-
- protected abstract Task UnaryOperatorAddrOfTestImpl();
-
- protected abstract Task UnaryOperatorDerefTestImpl();
-
- protected abstract Task UnaryOperatorLogicalNotTestImpl();
-
- protected abstract Task UnaryOperatorPostfixTestImpl(string opcode);
-
- protected abstract Task UnaryOperatorPrefixTestImpl(string opcode);
-
- protected abstract Task WhileTestImpl();
-
- protected abstract Task WhileNonCompoundTestImpl();
-}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/FunctionDeclarationDllImportTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/FunctionDeclarationDllImportTest.cs
deleted file mode 100644
index 763a04f9..00000000
--- a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/FunctionDeclarationDllImportTest.cs
+++ /dev/null
@@ -1,121 +0,0 @@
-// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
-
-using System.Threading.Tasks;
-using NUnit.Framework;
-
-namespace ClangSharp.UnitTests;
-
-public abstract class FunctionDeclarationDllImportTest : PInvokeGeneratorTest
-{
- protected static readonly string[] TemplateTestExcludedNames = ["MyTemplate"];
-
- [Test]
- public Task BasicTest() => BasicTestImpl();
-
- [Test]
- public Task ArrayParameterTest() => ArrayParameterTestImpl();
-
- [Test]
- public Task FunctionPointerParameterTest() => FunctionPointerParameterTestImpl();
-
- [Test]
- public Task NamespaceTest() => NamespaceTestImpl();
-
- [TestCase("int", false, "int", "")]
- [TestCase("bool", true, "byte", "")]
- [TestCase("float *", true, "IntPtr", "using System;\n")]
- [TestCase("void (*)(int)", true, "IntPtr", "using System;\n")]
- public Task TemplateParameterTest(string nativeType, bool expectedNativeTypeAttr, string expectedManagedType, string expectedUsingStatement) => TemplateParameterTestImpl(nativeType, expectedNativeTypeAttr, expectedManagedType, expectedUsingStatement);
-
- [Test]
- public Task TemplateMemberTest() => TemplateMemberTestImpl();
-
-
- [Test]
- public Task NoLibraryPathTest() => NoLibraryPathTestImpl();
-
- [Test]
- public Task WithLibraryPathTest() => WithLibraryPathTestImpl();
-
- [Test]
- public Task WithLibraryPathStarTest() => WithLibraryPathStarTestImpl();
-
- [TestCase("unsigned char", "0", true, "byte", "0")]
- [TestCase("double", "1.0", false, "double", "1.0")]
- [TestCase("short", "2", false, "short", "2")]
- [TestCase("int", "3", false, "int", "3")]
- [TestCase("long long", "4", true, "long", "4")]
- [TestCase("signed char", "5", true, "sbyte", "5")]
- [TestCase("float", "6.0f", false, "float", "6.0f")]
- [TestCase("unsigned short", "7", true, "ushort", "7")]
- [TestCase("unsigned int", "8", true, "uint", "8")]
- [TestCase("unsigned long long", "9", true, "ulong", "9")]
- [TestCase("unsigned short", "'A'", true, "ushort", "(byte)('A')")]
- public Task OptionalParameterTest(string nativeType, string nativeInit, bool expectedNativeTypeNameAttr, string expectedManagedType, string expectedManagedInit) => OptionalParameterTestImpl(nativeType, nativeInit, expectedNativeTypeNameAttr, expectedManagedType, expectedManagedInit);
-
- [TestCase("void *", "nullptr", "void*", "null")]
- [TestCase("void *", "0", "void*", "null")]
- public Task OptionalParameterUnsafeTest(string nativeType, string nativeInit, string expectedManagedType, string expectedManagedInit) => OptionalParameterUnsafeTestImpl(nativeType, nativeInit, expectedManagedType, expectedManagedInit);
-
- [Test]
- public Task WithCallConvTest() => WithCallConvTestImpl();
-
- [Test]
- public Task WithCallConvStarTest() => WithCallConvStarTestImpl();
-
- [Test]
- public Task WithCallConvStarOverrideTest() => WithCallConvStarOverrideTestImpl();
-
- [Test]
- public Task WithSetLastErrorTest() => WithSetLastErrorTestImpl();
-
- [Test]
- public Task WithSetLastErrorStarTest() => WithSetLastErrorStarTestImpl();
-
- [Test]
- public Task SourceLocationTest() => SourceLocationTestImpl();
-
- [Test]
- public Task VarargsTest() => VarargsTestImpl();
-
- [Test]
- public Task IntrinsicsTest() => IntrinsicsTestImpl();
-
- protected abstract Task BasicTestImpl();
-
- protected abstract Task ArrayParameterTestImpl();
-
- protected abstract Task FunctionPointerParameterTestImpl();
-
- protected abstract Task NamespaceTestImpl();
-
- protected abstract Task TemplateParameterTestImpl(string nativeType, bool expectedNativeTypeAttr, string expectedManagedType, string expectedUsingStatement);
-
- protected abstract Task TemplateMemberTestImpl();
-
- protected abstract Task NoLibraryPathTestImpl();
-
- protected abstract Task WithLibraryPathTestImpl();
-
- protected abstract Task WithLibraryPathStarTestImpl();
-
- protected abstract Task OptionalParameterTestImpl(string nativeType, string nativeInit, bool expectedNativeTypeNameAttr, string expectedManagedType, string expectedManagedInit);
-
- protected abstract Task OptionalParameterUnsafeTestImpl(string nativeType, string nativeInit, string expectedManagedType, string expectedManagedInit);
-
- protected abstract Task WithCallConvTestImpl();
-
- protected abstract Task WithCallConvStarTestImpl();
-
- protected abstract Task WithCallConvStarOverrideTestImpl();
-
- protected abstract Task WithSetLastErrorTestImpl();
-
- protected abstract Task WithSetLastErrorStarTestImpl();
-
- protected abstract Task SourceLocationTestImpl();
-
- protected abstract Task VarargsTestImpl();
-
- protected abstract Task IntrinsicsTestImpl();
-}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/FunctionPointerDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/FunctionPointerDeclarationTest.cs
deleted file mode 100644
index 7938c6b1..00000000
--- a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/FunctionPointerDeclarationTest.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
-
-using System.Threading.Tasks;
-using NUnit.Framework;
-
-namespace ClangSharp.UnitTests;
-
-public abstract class FunctionPointerDeclarationTest : PInvokeGeneratorTest
-{
- [Test]
- public Task BasicTest() => BasicTestImpl();
-
- [Test]
- public Task CallconvTest() => CallconvTestImpl();
-
- [Test]
- public Task PointerlessTypedefTest() => PointerlessTypedefTestImpl();
-
- protected abstract Task BasicTestImpl();
-
- protected abstract Task CallconvTestImpl();
-
- protected abstract Task PointerlessTypedefTestImpl();
-}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/StructDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/StructDeclarationTest.cs
deleted file mode 100644
index 0f3b3e46..00000000
--- a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/StructDeclarationTest.cs
+++ /dev/null
@@ -1,293 +0,0 @@
-// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
-
-using System.Threading.Tasks;
-using NUnit.Framework;
-
-namespace ClangSharp.UnitTests;
-
-public abstract class StructDeclarationTest : PInvokeGeneratorTest
-{
- protected static readonly string[] ExcludeTestExcludedNames = ["MyStruct"];
- protected static readonly string[] GuidTestExcludedNames = ["DECLSPEC_UUID"];
-
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("float", "float")]
- public Task IncompleteArraySizeTest(string nativeType, string expectedManagedType) => IncompleteArraySizeTestImpl(nativeType, expectedManagedType);
-
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("float", "float")]
- public Task BasicTest(string nativeType, string expectedManagedType) => BasicTestImpl(nativeType, expectedManagedType);
-
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("float", "float")]
- public Task BasicTestInCMode(string nativeType, string expectedManagedType) => BasicTestInCModeImpl(nativeType, expectedManagedType);
-
- [TestCase("unsigned char", "byte")]
- [TestCase("long long", "long")]
- [TestCase("signed char", "sbyte")]
- [TestCase("unsigned short", "ushort")]
- [TestCase("unsigned int", "uint")]
- [TestCase("unsigned long long", "ulong")]
- [TestCase("bool", "byte")]
- public Task BasicWithNativeTypeNameTest(string nativeType, string expectedManagedType) => BasicWithNativeTypeNameTestImpl(nativeType, expectedManagedType);
-
- [Test]
- public Task BitfieldTest() => BitfieldTestImpl();
-
- [Test]
- public Task BitfieldWithNativeBitfieldAttributeTest() => BitfieldWithNativeBitfieldAttributeTestImpl();
-
- [Test]
- public Task DeclTypeTest() => DeclTypeTestImpl();
-
- [Test]
- public Task ExcludeTest() => ExcludeTestImpl();
-
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("float", "float")]
- public Task FixedSizedBufferNonPrimitiveTest(string nativeType, string expectedManagedType) => FixedSizedBufferNonPrimitiveTestImpl(nativeType, expectedManagedType);
-
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("float", "float")]
- public Task FixedSizedBufferNonPrimitiveMultidimensionalTest(string nativeType, string expectedManagedType) => FixedSizedBufferNonPrimitiveMultidimensionalTestImpl(nativeType, expectedManagedType);
-
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("float", "float")]
- public Task FixedSizedBufferNonPrimitiveTypedefTest(string nativeType, string expectedManagedType) => FixedSizedBufferNonPrimitiveTypedefTestImpl(nativeType, expectedManagedType);
-
- [TestCase("unsigned char", "byte")]
- [TestCase("long long", "long")]
- [TestCase("signed char", "sbyte")]
- [TestCase("unsigned short", "ushort")]
- [TestCase("unsigned int", "uint")]
- [TestCase("unsigned long long", "ulong")]
- [TestCase("bool", "byte")]
- public Task FixedSizedBufferNonPrimitiveWithNativeTypeNameTest(string nativeType, string expectedManagedType) => FixedSizedBufferNonPrimitiveWithNativeTypeNameTestImpl(nativeType, expectedManagedType);
-
- [TestCase("double *", "double*")]
- [TestCase("short *", "short*")]
- [TestCase("int *", "int*")]
- [TestCase("float *", "float*")]
- public Task FixedSizedBufferPointerTest(string nativeType, string expectedManagedType) => FixedSizedBufferPointerTestImpl(nativeType, expectedManagedType);
-
- [TestCase("unsigned char", "byte")]
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("long long", "long")]
- [TestCase("signed char", "sbyte")]
- [TestCase("float", "float")]
- [TestCase("unsigned short", "ushort")]
- [TestCase("unsigned int", "uint")]
- [TestCase("unsigned long long", "ulong")]
- public Task FixedSizedBufferPrimitiveTest(string nativeType, string expectedManagedType) => FixedSizedBufferPrimitiveTestImpl(nativeType, expectedManagedType);
-
- [TestCase("unsigned char", "byte")]
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("long long", "long")]
- [TestCase("signed char", "sbyte")]
- [TestCase("float", "float")]
- [TestCase("unsigned short", "ushort")]
- [TestCase("unsigned int", "uint")]
- [TestCase("unsigned long long", "ulong")]
- public Task FixedSizedBufferPrimitiveMultidimensionalTest(string nativeType, string expectedManagedType) => FixedSizedBufferPrimitiveMultidimensionalTestImpl(nativeType, expectedManagedType);
-
- [TestCase("unsigned char", "byte")]
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("long long", "long")]
- [TestCase("signed char", "sbyte")]
- [TestCase("float", "float")]
- [TestCase("unsigned short", "ushort")]
- [TestCase("unsigned int", "uint")]
- [TestCase("unsigned long long", "ulong")]
- public Task FixedSizedBufferPrimitiveTypedefTest(string nativeType, string expectedManagedType) => FixedSizedBufferPrimitiveTypedefTestImpl(nativeType, expectedManagedType);
-
- [Test]
- public Task GuidTest() => GuidTestImpl();
-
- [Test]
- public Task InheritanceTest() => InheritanceTestImpl();
-
- [Test]
- public Task InheritanceWithNativeInheritanceAttributeTest() => InheritanceWithNativeInheritanceAttributeTestImpl();
-
- [TestCase("double", "double", 10, 5)]
- [TestCase("short", "short", 10, 5)]
- [TestCase("int", "int", 10, 5)]
- [TestCase("float", "float", 10, 5)]
- public Task NestedAnonymousTest(string nativeType, string expectedManagedType, int line, int column) => NestedAnonymousTestImpl(nativeType, expectedManagedType, line, column);
-
- [Test]
- public Task NestedAnonymousWithBitfieldTest() => NestedAnonymousWithBitfieldTestImpl();
-
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("float", "float")]
- public Task NestedTest(string nativeType, string expectedManagedType) => NestedTestImpl(nativeType, expectedManagedType);
-
- [TestCase("unsigned char", "byte")]
- [TestCase("long long", "long")]
- [TestCase("signed char", "sbyte")]
- [TestCase("unsigned short", "ushort")]
- [TestCase("unsigned int", "uint")]
- [TestCase("unsigned long long", "ulong")]
- [TestCase("bool", "byte")]
- public Task NestedWithNativeTypeNameTest(string nativeType, string expectedManagedType) => NestedWithNativeTypeNameTestImpl(nativeType, expectedManagedType);
-
- [Test]
- public Task NewKeywordTest() => NewKeywordTestImpl();
-
- [Test]
- public Task NoDefinitionTest() => NoDefinitionTestImpl();
-
- [Test]
- public Task PackTest() => PackTestImpl();
-
- [Test]
- public Task PointerToSelfTest() => PointerToSelfTestImpl();
-
- [Test]
- public Task PointerToSelfViaTypedefTest() => PointerToSelfViaTypedefTestImpl();
-
- [Test]
- public Task RemapTest() => RemapTestImpl();
-
- [Test]
- public Task RemapNestedAnonymousTest() => RemapNestedAnonymousTestImpl();
-
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("float", "float")]
- public Task SkipNonDefinitionTest(string nativeType, string expectedManagedType) => SkipNonDefinitionTestImpl(nativeType, expectedManagedType);
-
- [Test]
- public Task SkipNonDefinitionPointerTest() => SkipNonDefinitionPointerTestImpl();
-
- [TestCase("unsigned char", "byte")]
- [TestCase("long long", "long")]
- [TestCase("signed char", "sbyte")]
- [TestCase("unsigned short", "ushort")]
- [TestCase("unsigned int", "uint")]
- [TestCase("unsigned long long", "ulong")]
- [TestCase("bool", "byte")]
- public Task SkipNonDefinitionWithNativeTypeNameTest(string nativeType, string expectedManagedType) => SkipNonDefinitionWithNativeTypeNameTestImpl(nativeType, expectedManagedType);
-
- [TestCase("unsigned char", "byte")]
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("long long", "long")]
- [TestCase("signed char", "sbyte")]
- [TestCase("float", "float")]
- [TestCase("unsigned short", "ushort")]
- [TestCase("unsigned int", "uint")]
- [TestCase("unsigned long long", "ulong")]
- [TestCase("bool", "byte")]
- public Task TypedefTest(string nativeType, string expectedManagedType) => TypedefTestImpl(nativeType, expectedManagedType);
-
- [Test]
- public Task UsingDeclarationTest() => UsingDeclarationTestImpl();
-
- [Test]
- public Task WithAccessSpecifierTest() => WithAccessSpecifierTestImpl();
-
- [Test]
- public Task WithPackingTest() => WithPackingTestImpl();
-
- [Test]
- public Task SourceLocationAttributeTest() => SourceLocationAttributeTestImpl();
-
- protected abstract Task IncompleteArraySizeTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task BasicTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task BasicTestInCModeImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task BasicWithNativeTypeNameTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task BitfieldTestImpl();
-
- protected abstract Task BitfieldWithNativeBitfieldAttributeTestImpl();
-
- protected abstract Task DeclTypeTestImpl();
-
- protected abstract Task ExcludeTestImpl();
-
- protected abstract Task FixedSizedBufferNonPrimitiveTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task FixedSizedBufferNonPrimitiveMultidimensionalTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task FixedSizedBufferNonPrimitiveTypedefTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task FixedSizedBufferNonPrimitiveWithNativeTypeNameTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task FixedSizedBufferPointerTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task FixedSizedBufferPrimitiveTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task FixedSizedBufferPrimitiveMultidimensionalTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task FixedSizedBufferPrimitiveTypedefTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task GuidTestImpl();
-
- protected abstract Task InheritanceTestImpl();
-
- protected abstract Task InheritanceWithNativeInheritanceAttributeTestImpl();
-
- protected abstract Task NestedAnonymousTestImpl(string nativeType, string expectedManagedType, int line, int column);
-
- protected abstract Task NestedAnonymousWithBitfieldTestImpl();
-
- protected abstract Task NestedTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task NestedWithNativeTypeNameTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task NewKeywordTestImpl();
-
- protected abstract Task NoDefinitionTestImpl();
-
- protected abstract Task PackTestImpl();
-
- protected abstract Task PointerToSelfTestImpl();
-
- protected abstract Task PointerToSelfViaTypedefTestImpl();
-
- protected abstract Task RemapTestImpl();
-
- protected abstract Task RemapNestedAnonymousTestImpl();
-
- protected abstract Task SkipNonDefinitionTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task SkipNonDefinitionPointerTestImpl();
-
- protected abstract Task SkipNonDefinitionWithNativeTypeNameTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task TypedefTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task UsingDeclarationTestImpl();
-
- protected abstract Task WithAccessSpecifierTestImpl();
-
- protected abstract Task WithPackingTestImpl();
-
- protected abstract Task SourceLocationAttributeTestImpl();
-}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/UnionDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/UnionDeclarationTest.cs
deleted file mode 100644
index f6ff2143..00000000
--- a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/UnionDeclarationTest.cs
+++ /dev/null
@@ -1,245 +0,0 @@
-// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
-
-using System.Threading.Tasks;
-using NUnit.Framework;
-
-namespace ClangSharp.UnitTests;
-
-public abstract class UnionDeclarationTest : PInvokeGeneratorTest
-{
- protected static readonly string[] ExcludeTestExcludedNames = ["MyUnion"];
- protected static readonly string[] GuidTestExcludedNames = ["DECLSPEC_UUID"];
-
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("float", "float")]
- public Task BasicTest(string nativeType, string expectedManagedType) => BasicTestImpl(nativeType, expectedManagedType);
-
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("float", "float")]
- public Task BasicTestInCMode(string nativeType, string expectedManagedType) => BasicTestInCModeImpl(nativeType, expectedManagedType);
-
- [TestCase("unsigned char", "byte")]
- [TestCase("long long", "long")]
- [TestCase("signed char", "sbyte")]
- [TestCase("unsigned short", "ushort")]
- [TestCase("unsigned int", "uint")]
- [TestCase("unsigned long long", "ulong")]
- [TestCase("bool", "byte")]
- public Task BasicWithNativeTypeNameTest(string nativeType, string expectedManagedType) => BasicWithNativeTypeNameTestImpl(nativeType, expectedManagedType);
-
- [Test]
- public Task BitfieldTest() => BitfieldTestImpl();
-
- [Test]
- public Task ExcludeTest() => ExcludeTestImpl();
-
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("float", "float")]
- public Task FixedSizedBufferNonPrimitiveTest(string nativeType, string expectedManagedType) => FixedSizedBufferNonPrimitiveTestImpl(nativeType, expectedManagedType);
-
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("float", "float")]
- public Task FixedSizedBufferNonPrimitiveMultidimensionalTest(string nativeType, string expectedManagedType) => FixedSizedBufferNonPrimitiveMultidimensionalTestImpl(nativeType, expectedManagedType);
-
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("float", "float")]
- public Task FixedSizedBufferNonPrimitiveTypedefTest(string nativeType, string expectedManagedType) => FixedSizedBufferNonPrimitiveTypedefTestImpl(nativeType, expectedManagedType);
-
- [TestCase("unsigned char", "byte")]
- [TestCase("long long", "long")]
- [TestCase("signed char", "sbyte")]
- [TestCase("unsigned short", "ushort")]
- [TestCase("unsigned int", "uint")]
- [TestCase("unsigned long long", "ulong")]
- [TestCase("bool", "byte")]
- public Task FixedSizedBufferNonPrimitiveWithNativeTypeNameTest(string nativeType, string expectedManagedType) => FixedSizedBufferNonPrimitiveWithNativeTypeNameTestImpl(nativeType, expectedManagedType);
-
- [TestCase("double *", "double*")]
- [TestCase("short *", "short*")]
- [TestCase("int *", "int*")]
- [TestCase("float *", "float*")]
- public Task FixedSizedBufferPointerTest(string nativeType, string expectedManagedType) => FixedSizedBufferPointerTestImpl(nativeType, expectedManagedType);
-
- [TestCase("unsigned char", "byte")]
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("long long", "long")]
- [TestCase("signed char", "sbyte")]
- [TestCase("float", "float")]
- [TestCase("unsigned short", "ushort")]
- [TestCase("unsigned int", "uint")]
- [TestCase("unsigned long long", "ulong")]
- public Task FixedSizedBufferPrimitiveTest(string nativeType, string expectedManagedType) => FixedSizedBufferPrimitiveTestImpl(nativeType, expectedManagedType);
-
- [TestCase("unsigned char", "byte")]
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("long long", "long")]
- [TestCase("signed char", "sbyte")]
- [TestCase("float", "float")]
- [TestCase("unsigned short", "ushort")]
- [TestCase("unsigned int", "uint")]
- [TestCase("unsigned long long", "ulong")]
- public Task FixedSizedBufferPrimitiveMultidimensionalTest(string nativeType, string expectedManagedType) => FixedSizedBufferPrimitiveMultidimensionalTestImpl(nativeType, expectedManagedType);
-
- [TestCase("unsigned char", "byte")]
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("long long", "long")]
- [TestCase("signed char", "sbyte")]
- [TestCase("float", "float")]
- [TestCase("unsigned short", "ushort")]
- [TestCase("unsigned int", "uint")]
- [TestCase("unsigned long long", "ulong")]
- public Task FixedSizedBufferPrimitiveTypedefTest(string nativeType, string expectedManagedType) => FixedSizedBufferPrimitiveTypedefTestImpl(nativeType, expectedManagedType);
-
- [Test]
- public Task GuidTest() => GuidTestImpl();
-
- [TestCase("double", "double", 11, 5)]
- [TestCase("short", "short", 11, 5)]
- [TestCase("int", "int", 11, 5)]
- [TestCase("float", "float", 11, 5)]
- public Task NestedAnonymousTest(string nativeType, string expectedManagedType, int line, int column) => NestedAnonymousTestImpl(nativeType, expectedManagedType, line, column);
-
- [Test]
- public Task NestedAnonymousWithBitfieldTest() => NestedAnonymousWithBitfieldTestImpl();
-
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("float", "float")]
- public Task NestedTest(string nativeType, string expectedManagedType) => NestedTestImpl(nativeType, expectedManagedType);
-
- [TestCase("unsigned char", "byte")]
- [TestCase("long long", "long")]
- [TestCase("signed char", "sbyte")]
- [TestCase("unsigned short", "ushort")]
- [TestCase("unsigned int", "uint")]
- [TestCase("unsigned long long", "ulong")]
- [TestCase("bool", "byte")]
- public Task NestedWithNativeTypeNameTest(string nativeType, string expectedManagedType) => NestedWithNativeTypeNameTestImpl(nativeType, expectedManagedType);
-
- [Test]
- public Task NewKeywordTest() => NewKeywordTestImpl();
-
- [Test]
- public Task NoDefinitionTest() => NoDefinitionTestImpl();
-
- [Test]
- public Task PointerToSelfTest() => PointerToSelfTestImpl();
-
- [Test]
- public Task PointerToSelfViaTypedefTest() => PointerToSelfViaTypedefTestImpl();
-
- [Test]
- public Task RemapTest() => RemapTestImpl();
-
- [Test]
- public Task RemapNestedAnonymousTest() => RemapNestedAnonymousTestImpl();
-
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("float", "float")]
- public Task SkipNonDefinitionTest(string nativeType, string expectedManagedType) => SkipNonDefinitionTestImpl(nativeType, expectedManagedType);
-
- [Test]
- public Task SkipNonDefinitionPointerTest() => SkipNonDefinitionPointerTestImpl();
-
- [TestCase("unsigned char", "byte")]
- [TestCase("long long", "long")]
- [TestCase("signed char", "sbyte")]
- [TestCase("unsigned short", "ushort")]
- [TestCase("unsigned int", "uint")]
- [TestCase("unsigned long long", "ulong")]
- [TestCase("bool", "byte")]
- public Task SkipNonDefinitionWithNativeTypeNameTest(string nativeType, string expectedManagedType) => SkipNonDefinitionWithNativeTypeNameTestImpl(nativeType, expectedManagedType);
-
- [TestCase("unsigned char", "byte")]
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("long long", "long")]
- [TestCase("signed char", "sbyte")]
- [TestCase("float", "float")]
- [TestCase("unsigned short", "ushort")]
- [TestCase("unsigned int", "uint")]
- [TestCase("unsigned long long", "ulong")]
- [TestCase("bool", "byte")]
- public Task TypedefTest(string nativeType, string expectedManagedType) => TypedefTestImpl(nativeType, expectedManagedType);
-
- [Test]
- public Task UnionWithAnonStructWithAnonUnion() => UnionWithAnonStructWithAnonUnionImpl();
-
- protected abstract Task BasicTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task BasicTestInCModeImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task BasicWithNativeTypeNameTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task BitfieldTestImpl();
-
- protected abstract Task ExcludeTestImpl();
-
- protected abstract Task FixedSizedBufferNonPrimitiveTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task FixedSizedBufferNonPrimitiveMultidimensionalTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task FixedSizedBufferNonPrimitiveTypedefTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task FixedSizedBufferNonPrimitiveWithNativeTypeNameTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task FixedSizedBufferPointerTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task FixedSizedBufferPrimitiveTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task FixedSizedBufferPrimitiveMultidimensionalTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task FixedSizedBufferPrimitiveTypedefTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task GuidTestImpl();
-
- protected abstract Task NestedAnonymousTestImpl(string nativeType, string expectedManagedType, int line, int column);
-
- protected abstract Task NestedAnonymousWithBitfieldTestImpl();
-
- protected abstract Task NestedTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task NestedWithNativeTypeNameTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task NewKeywordTestImpl();
-
- protected abstract Task NoDefinitionTestImpl();
-
- protected abstract Task PointerToSelfTestImpl();
-
- protected abstract Task PointerToSelfViaTypedefTestImpl();
-
- protected abstract Task RemapTestImpl();
-
- protected abstract Task RemapNestedAnonymousTestImpl();
-
- protected abstract Task SkipNonDefinitionTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task SkipNonDefinitionPointerTestImpl();
-
- protected abstract Task SkipNonDefinitionWithNativeTypeNameTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task TypedefTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task UnionWithAnonStructWithAnonUnionImpl();
-}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/VarDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/VarDeclarationTest.cs
deleted file mode 100644
index 864cd583..00000000
--- a/tests/ClangSharp.PInvokeGenerator.UnitTests/Base/VarDeclarationTest.cs
+++ /dev/null
@@ -1,124 +0,0 @@
-// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
-
-using System.Threading.Tasks;
-using NUnit.Framework;
-
-namespace ClangSharp.UnitTests;
-
-public abstract class VarDeclarationTest : PInvokeGeneratorTest
-{
- protected static readonly string[] GuidMacroTestExcludedNames = ["GUID"];
- protected static readonly string[] UncheckedConversionMacroTest2ExcludedNames = ["MyMacro1", "MyMacro2"];
-
- [TestCase("double", "double")]
- [TestCase("short", "short")]
- [TestCase("int", "int")]
- [TestCase("float", "float")]
- public Task BasicTest(string nativeType, string expectedManagedType) => BasicTestImpl(nativeType, expectedManagedType);
-
- [TestCase("unsigned char", "byte")]
- [TestCase("long long", "long")]
- [TestCase("signed char", "sbyte")]
- [TestCase("unsigned short", "ushort")]
- [TestCase("unsigned int", "uint")]
- [TestCase("unsigned long long", "ulong")]
- public Task BasicWithNativeTypeNameTest(string nativeType, string expectedManagedType) => BasicWithNativeTypeNameTestImpl(nativeType, expectedManagedType);
-
- [Test]
- public Task GuidMacroTest() => GuidMacroTestImpl();
-
- [TestCase("0", "int", "0")]
- [TestCase("0U", "uint", "0U")]
- [TestCase("0LL", "long", "0L")]
- [TestCase("0ULL", "ulong", "0UL")]
- [TestCase("0LLU", "ulong", "0UL")]
- [TestCase("0.0", "double", "0.0")]
- [TestCase("0.f", "float", "0.0f")]
- public Task MacroTest(string nativeValue, string expectedManagedType, string expectedManagedValue) => MacroTestImpl(nativeValue, expectedManagedType, expectedManagedValue);
-
- [Test]
- public Task MultilineMacroTest() => MultilineMacroTestImpl();
-
- [TestCase("double")]
- [TestCase("short")]
- [TestCase("int")]
- [TestCase("float")]
- public Task NoInitializerTest(string nativeType) => NoInitializerTestImpl(nativeType);
-
- [Test]
- public Task Utf8StringLiteralMacroTest() => Utf8StringLiteralMacroTestImpl();
-
- [Test]
- public Task Utf16StringLiteralMacroTest() => Utf16StringLiteralMacroTestImpl();
-
- [Test]
- public Task WideStringLiteralConstTest() => WideStringLiteralConstTestImpl();
-
- [Test]
- public Task StringLiteralConstTest() => StringLiteralConstTestImpl();
-
- [Test]
- public Task WideStringLiteralStaticConstTest() => WideStringLiteralStaticConstTestImpl();
-
- [Test]
- public Task StringLiteralStaticConstTest() => StringLiteralStaticConstTestImpl();
-
- [Test]
- public Task UncheckedConversionMacroTest() => UncheckedConversionMacroTestImpl();
-
- [Test]
- public Task UncheckedFunctionLikeCastMacroTest() => UncheckedFunctionLikeCastMacroTestImpl();
-
- [Test]
- public Task UncheckedConversionMacroTest2() => UncheckedConversionMacroTest2Impl();
-
- [Test]
- public Task UncheckedPointerMacroTest() => UncheckedPointerMacroTestImpl();
-
- [Test]
- public Task UncheckedReinterpretCastMacroTest() => UncheckedReinterpretCastMacroTestImpl();
-
- [Test]
- public Task MultidimensionlArrayTest() => MultidimensionlArrayTestImpl();
-
- [Test]
- public Task ConditionalDefineConstTest() => ConditionalDefineConstTestImpl();
-
- protected abstract Task BasicTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task BasicWithNativeTypeNameTestImpl(string nativeType, string expectedManagedType);
-
- protected abstract Task GuidMacroTestImpl();
-
- protected abstract Task MacroTestImpl(string nativeValue, string expectedManagedType, string expectedManagedValue);
-
- protected abstract Task MultilineMacroTestImpl();
-
- protected abstract Task NoInitializerTestImpl(string nativeType);
-
- protected abstract Task Utf8StringLiteralMacroTestImpl();
-
- protected abstract Task Utf16StringLiteralMacroTestImpl();
-
- protected abstract Task WideStringLiteralConstTestImpl();
-
- protected abstract Task StringLiteralConstTestImpl();
-
- protected abstract Task WideStringLiteralStaticConstTestImpl();
-
- protected abstract Task StringLiteralStaticConstTestImpl();
-
- protected abstract Task UncheckedConversionMacroTestImpl();
-
- protected abstract Task UncheckedFunctionLikeCastMacroTestImpl();
-
- protected abstract Task UncheckedConversionMacroTest2Impl();
-
- protected abstract Task UncheckedPointerMacroTestImpl();
-
- protected abstract Task UncheckedReinterpretCastMacroTestImpl();
-
- protected abstract Task MultidimensionlArrayTestImpl();
-
- protected abstract Task ConditionalDefineConstTestImpl();
-}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.BasicTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.BasicTest.Unix.Latest.cs
new file mode 100644
index 00000000..9360543f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.BasicTest.Unix.Latest.cs
@@ -0,0 +1,16 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+
+ public partial struct MyStruct
+ {
+ [NativeTypeName("enum_t")]
+ public MyEnum _field;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.BasicTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.BasicTest.Windows.Latest.cs
new file mode 100644
index 00000000..95603a8e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.BasicTest.Windows.Latest.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+
+ public partial struct MyStruct
+ {
+ [NativeTypeName("enum_t")]
+ public MyEnum _field;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.EnumTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.EnumTest.Unix.Latest.cs
new file mode 100644
index 00000000..22045657
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.EnumTest.Unix.Latest.cs
@@ -0,0 +1,19 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ [NativeTypeName("__AnonymousEnum_ClangUnsavedFile_L8_C5")]
+ public uint field;
+
+ public const uint VALUEA = 0;
+ public const uint VALUEB = 1;
+ public const uint VALUEC = 2;
+ }
+
+ public static partial class Methods
+ {
+ public const uint VALUE1 = 0;
+ public const uint VALUE2 = 1;
+ public const uint VALUE3 = 2;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.EnumTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.EnumTest.Windows.Latest.cs
new file mode 100644
index 00000000..a9bbb306
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.EnumTest.Windows.Latest.cs
@@ -0,0 +1,19 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ [NativeTypeName("__AnonymousEnum_ClangUnsavedFile_L8_C5")]
+ public int field;
+
+ public const int VALUEA = 0;
+ public const int VALUEB = 1;
+ public const int VALUEC = 2;
+ }
+
+ public static partial class Methods
+ {
+ public const int VALUE1 = 0;
+ public const int VALUE2 = 1;
+ public const int VALUE3 = 2;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.MacroTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.MacroTest.Unix.Latest.cs
new file mode 100644
index 00000000..d1100643
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.MacroTest.Unix.Latest.cs
@@ -0,0 +1,11 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [NativeTypeName("#define MyMacro1 5")]
+ public const int MyMacro1 = 5;
+
+ [NativeTypeName("#define MyMacro2 MyMacro1")]
+ public const int MyMacro2 = 5;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.MacroTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.MacroTest.Windows.Latest.cs
new file mode 100644
index 00000000..d1100643
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.MacroTest.Windows.Latest.cs
@@ -0,0 +1,11 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [NativeTypeName("#define MyMacro1 5")]
+ public const int MyMacro1 = 5;
+
+ [NativeTypeName("#define MyMacro2 MyMacro1")]
+ public const int MyMacro2 = 5;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.StructTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.StructTest.Unix.Latest.cs
new file mode 100644
index 00000000..a08172e5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.StructTest.Unix.Latest.cs
@@ -0,0 +1,45 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public partial struct _MyStruct
+ {
+ public int _field;
+ }
+
+ public unsafe partial struct _MyOtherStruct
+ {
+ [NativeTypeName("MyStruct")]
+ public _MyStruct _field1;
+
+ [NativeTypeName("MyStruct *")]
+ public _MyStruct* _field2;
+ }
+
+ public partial struct _MyStructWithAnonymousStruct
+ {
+ [NativeTypeName("__AnonymousRecord_ClangUnsavedFile_L14_C5")]
+ public __anonymousStructField1_e__Struct _anonymousStructField1;
+
+ public partial struct __anonymousStructField1_e__Struct
+ {
+ public int _field;
+ }
+ }
+
+ public partial struct _MyStructWithAnonymousUnion
+ {
+ [NativeTypeName("__AnonymousRecord_ClangUnsavedFile_L21_C5")]
+ public _union1_e__Union union1;
+
+ [StructLayout(LayoutKind.Explicit)]
+ public unsafe partial struct _union1_e__Union
+ {
+ [FieldOffset(0)]
+ public int _field1;
+
+ [FieldOffset(0)]
+ public int* _field2;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.StructTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.StructTest.Windows.Latest.cs
new file mode 100644
index 00000000..a08172e5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.StructTest.Windows.Latest.cs
@@ -0,0 +1,45 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public partial struct _MyStruct
+ {
+ public int _field;
+ }
+
+ public unsafe partial struct _MyOtherStruct
+ {
+ [NativeTypeName("MyStruct")]
+ public _MyStruct _field1;
+
+ [NativeTypeName("MyStruct *")]
+ public _MyStruct* _field2;
+ }
+
+ public partial struct _MyStructWithAnonymousStruct
+ {
+ [NativeTypeName("__AnonymousRecord_ClangUnsavedFile_L14_C5")]
+ public __anonymousStructField1_e__Struct _anonymousStructField1;
+
+ public partial struct __anonymousStructField1_e__Struct
+ {
+ public int _field;
+ }
+ }
+
+ public partial struct _MyStructWithAnonymousUnion
+ {
+ [NativeTypeName("__AnonymousRecord_ClangUnsavedFile_L21_C5")]
+ public _union1_e__Union union1;
+
+ [StructLayout(LayoutKind.Explicit)]
+ public unsafe partial struct _union1_e__Union
+ {
+ [FieldOffset(0)]
+ public int _field1;
+
+ [FieldOffset(0)]
+ public int* _field2;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.UnionTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.UnionTest.Unix.Latest.cs
new file mode 100644
index 00000000..e7226974
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.UnionTest.Unix.Latest.cs
@@ -0,0 +1,23 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [StructLayout(LayoutKind.Explicit)]
+ public partial struct _MyUnion
+ {
+ [FieldOffset(0)]
+ public int _field;
+ }
+
+ [StructLayout(LayoutKind.Explicit)]
+ public unsafe partial struct _MyOtherUnion
+ {
+ [FieldOffset(0)]
+ [NativeTypeName("MyUnion")]
+ public _MyUnion _field1;
+
+ [FieldOffset(0)]
+ [NativeTypeName("MyUnion *")]
+ public _MyUnion* _field2;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.UnionTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.UnionTest.Windows.Latest.cs
new file mode 100644
index 00000000..e7226974
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CTest.UnionTest.Windows.Latest.cs
@@ -0,0 +1,23 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [StructLayout(LayoutKind.Explicit)]
+ public partial struct _MyUnion
+ {
+ [FieldOffset(0)]
+ public int _field;
+ }
+
+ [StructLayout(LayoutKind.Explicit)]
+ public unsafe partial struct _MyOtherUnion
+ {
+ [FieldOffset(0)]
+ [NativeTypeName("MyUnion")]
+ public _MyUnion _field1;
+
+ [FieldOffset(0)]
+ [NativeTypeName("MyUnion *")]
+ public _MyUnion* _field2;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Compatible.cs
new file mode 100644
index 00000000..2f18e222
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Compatible.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int _value;
+
+ public MyStruct(int value)
+ {
+ _value = value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Compatible.xml
new file mode 100644
index 00000000..b5995343
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+ _value = value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Default.cs
new file mode 100644
index 00000000..2f18e222
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Default.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int _value;
+
+ public MyStruct(int value)
+ {
+ _value = value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Default.xml
new file mode 100644
index 00000000..b5995343
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+ _value = value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Latest.cs
new file mode 100644
index 00000000..2f18e222
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Latest.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int _value;
+
+ public MyStruct(int value)
+ {
+ _value = value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Latest.xml
new file mode 100644
index 00000000..b5995343
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+ _value = value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Preview.cs
new file mode 100644
index 00000000..2f18e222
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Preview.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int _value;
+
+ public MyStruct(int value)
+ {
+ _value = value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Preview.xml
new file mode 100644
index 00000000..b5995343
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+ _value = value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Compatible.cs
new file mode 100644
index 00000000..2f18e222
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Compatible.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int _value;
+
+ public MyStruct(int value)
+ {
+ _value = value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Compatible.xml
new file mode 100644
index 00000000..b5995343
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+ _value = value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Default.cs
new file mode 100644
index 00000000..2f18e222
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Default.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int _value;
+
+ public MyStruct(int value)
+ {
+ _value = value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Default.xml
new file mode 100644
index 00000000..b5995343
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+ _value = value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Latest.cs
new file mode 100644
index 00000000..2f18e222
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Latest.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int _value;
+
+ public MyStruct(int value)
+ {
+ _value = value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Latest.xml
new file mode 100644
index 00000000..b5995343
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+ _value = value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Preview.cs
new file mode 100644
index 00000000..2f18e222
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Preview.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int _value;
+
+ public MyStruct(int value)
+ {
+ _value = value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Preview.xml
new file mode 100644
index 00000000..b5995343
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorTest.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+ _value = value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Compatible.cs
new file mode 100644
index 00000000..f4ca52c5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Compatible.cs
@@ -0,0 +1,28 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int _x;
+
+ public int _y;
+
+ public int _z;
+
+ public MyStruct(int x)
+ {
+ _x = x;
+ }
+
+ public MyStruct(int x, int y)
+ {
+ _x = x;
+ _y = y;
+ }
+
+ public MyStruct(int x, int y, int z)
+ {
+ _x = x;
+ _y = y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Compatible.xml
new file mode 100644
index 00000000..8222ac99
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Compatible.xml
@@ -0,0 +1,61 @@
+
+
+
+
+
+ int
+
+
+ int
+
+
+ int
+
+
+ void
+
+ int
+
+
+ x
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+ x
+
+
+ y
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+ int
+
+
+ x
+
+
+ y
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Default.cs
new file mode 100644
index 00000000..f4ca52c5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Default.cs
@@ -0,0 +1,28 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int _x;
+
+ public int _y;
+
+ public int _z;
+
+ public MyStruct(int x)
+ {
+ _x = x;
+ }
+
+ public MyStruct(int x, int y)
+ {
+ _x = x;
+ _y = y;
+ }
+
+ public MyStruct(int x, int y, int z)
+ {
+ _x = x;
+ _y = y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Default.xml
new file mode 100644
index 00000000..8222ac99
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Default.xml
@@ -0,0 +1,61 @@
+
+
+
+
+
+ int
+
+
+ int
+
+
+ int
+
+
+ void
+
+ int
+
+
+ x
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+ x
+
+
+ y
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+ int
+
+
+ x
+
+
+ y
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Latest.cs
new file mode 100644
index 00000000..f4ca52c5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Latest.cs
@@ -0,0 +1,28 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int _x;
+
+ public int _y;
+
+ public int _z;
+
+ public MyStruct(int x)
+ {
+ _x = x;
+ }
+
+ public MyStruct(int x, int y)
+ {
+ _x = x;
+ _y = y;
+ }
+
+ public MyStruct(int x, int y, int z)
+ {
+ _x = x;
+ _y = y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Latest.xml
new file mode 100644
index 00000000..8222ac99
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Latest.xml
@@ -0,0 +1,61 @@
+
+
+
+
+
+ int
+
+
+ int
+
+
+ int
+
+
+ void
+
+ int
+
+
+ x
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+ x
+
+
+ y
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+ int
+
+
+ x
+
+
+ y
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Preview.cs
new file mode 100644
index 00000000..f4ca52c5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Preview.cs
@@ -0,0 +1,28 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int _x;
+
+ public int _y;
+
+ public int _z;
+
+ public MyStruct(int x)
+ {
+ _x = x;
+ }
+
+ public MyStruct(int x, int y)
+ {
+ _x = x;
+ _y = y;
+ }
+
+ public MyStruct(int x, int y, int z)
+ {
+ _x = x;
+ _y = y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Preview.xml
new file mode 100644
index 00000000..8222ac99
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Unix.Preview.xml
@@ -0,0 +1,61 @@
+
+
+
+
+
+ int
+
+
+ int
+
+
+ int
+
+
+ void
+
+ int
+
+
+ x
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+ x
+
+
+ y
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+ int
+
+
+ x
+
+
+ y
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Compatible.cs
new file mode 100644
index 00000000..f4ca52c5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Compatible.cs
@@ -0,0 +1,28 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int _x;
+
+ public int _y;
+
+ public int _z;
+
+ public MyStruct(int x)
+ {
+ _x = x;
+ }
+
+ public MyStruct(int x, int y)
+ {
+ _x = x;
+ _y = y;
+ }
+
+ public MyStruct(int x, int y, int z)
+ {
+ _x = x;
+ _y = y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Compatible.xml
new file mode 100644
index 00000000..8222ac99
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Compatible.xml
@@ -0,0 +1,61 @@
+
+
+
+
+
+ int
+
+
+ int
+
+
+ int
+
+
+ void
+
+ int
+
+
+ x
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+ x
+
+
+ y
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+ int
+
+
+ x
+
+
+ y
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Default.cs
new file mode 100644
index 00000000..f4ca52c5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Default.cs
@@ -0,0 +1,28 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int _x;
+
+ public int _y;
+
+ public int _z;
+
+ public MyStruct(int x)
+ {
+ _x = x;
+ }
+
+ public MyStruct(int x, int y)
+ {
+ _x = x;
+ _y = y;
+ }
+
+ public MyStruct(int x, int y, int z)
+ {
+ _x = x;
+ _y = y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Default.xml
new file mode 100644
index 00000000..8222ac99
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Default.xml
@@ -0,0 +1,61 @@
+
+
+
+
+
+ int
+
+
+ int
+
+
+ int
+
+
+ void
+
+ int
+
+
+ x
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+ x
+
+
+ y
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+ int
+
+
+ x
+
+
+ y
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Latest.cs
new file mode 100644
index 00000000..f4ca52c5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Latest.cs
@@ -0,0 +1,28 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int _x;
+
+ public int _y;
+
+ public int _z;
+
+ public MyStruct(int x)
+ {
+ _x = x;
+ }
+
+ public MyStruct(int x, int y)
+ {
+ _x = x;
+ _y = y;
+ }
+
+ public MyStruct(int x, int y, int z)
+ {
+ _x = x;
+ _y = y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Latest.xml
new file mode 100644
index 00000000..8222ac99
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Latest.xml
@@ -0,0 +1,61 @@
+
+
+
+
+
+ int
+
+
+ int
+
+
+ int
+
+
+ void
+
+ int
+
+
+ x
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+ x
+
+
+ y
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+ int
+
+
+ x
+
+
+ y
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Preview.cs
new file mode 100644
index 00000000..f4ca52c5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Preview.cs
@@ -0,0 +1,28 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int _x;
+
+ public int _y;
+
+ public int _z;
+
+ public MyStruct(int x)
+ {
+ _x = x;
+ }
+
+ public MyStruct(int x, int y)
+ {
+ _x = x;
+ _y = y;
+ }
+
+ public MyStruct(int x, int y, int z)
+ {
+ _x = x;
+ _y = y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Preview.xml
new file mode 100644
index 00000000..8222ac99
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConstructorWithInitializeTest.Windows.Preview.xml
@@ -0,0 +1,61 @@
+
+
+
+
+
+ int
+
+
+ int
+
+
+ int
+
+
+ void
+
+ int
+
+
+ x
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+ x
+
+
+ y
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+ int
+
+
+ x
+
+
+ y
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Compatible.cs
new file mode 100644
index 00000000..52a4e137
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Compatible.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int ToInt32()
+ {
+ return value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Compatible.xml
new file mode 100644
index 00000000..815ef7d9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Default.cs
new file mode 100644
index 00000000..52a4e137
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Default.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int ToInt32()
+ {
+ return value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Default.xml
new file mode 100644
index 00000000..815ef7d9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Latest.cs
new file mode 100644
index 00000000..52a4e137
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Latest.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int ToInt32()
+ {
+ return value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Latest.xml
new file mode 100644
index 00000000..815ef7d9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Preview.cs
new file mode 100644
index 00000000..52a4e137
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Preview.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int ToInt32()
+ {
+ return value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Preview.xml
new file mode 100644
index 00000000..815ef7d9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Unix.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Compatible.cs
new file mode 100644
index 00000000..52a4e137
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Compatible.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int ToInt32()
+ {
+ return value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Compatible.xml
new file mode 100644
index 00000000..815ef7d9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Default.cs
new file mode 100644
index 00000000..52a4e137
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Default.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int ToInt32()
+ {
+ return value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Default.xml
new file mode 100644
index 00000000..815ef7d9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Latest.cs
new file mode 100644
index 00000000..52a4e137
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Latest.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int ToInt32()
+ {
+ return value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Latest.xml
new file mode 100644
index 00000000..815ef7d9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Preview.cs
new file mode 100644
index 00000000..52a4e137
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Preview.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int ToInt32()
+ {
+ return value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Preview.xml
new file mode 100644
index 00000000..815ef7d9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ConversionTest.Windows.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Compatible.cs
new file mode 100644
index 00000000..c44dcce0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Compatible.cs
@@ -0,0 +1,11 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [NativeTypeName("struct MyStruct : MyTemplate")]
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.ThisCall, EntryPoint = "_ZN10MyTemplateIiE6DoWorkEPi", ExactSpelling = true)]
+ public static extern int* DoWork(MyStruct* pThis, int* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Compatible.xml
new file mode 100644
index 00000000..b66bee16
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Compatible.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int*
+
+ MyStruct*
+
+
+ int*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Default.cs
new file mode 100644
index 00000000..c44dcce0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Default.cs
@@ -0,0 +1,11 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [NativeTypeName("struct MyStruct : MyTemplate")]
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.ThisCall, EntryPoint = "_ZN10MyTemplateIiE6DoWorkEPi", ExactSpelling = true)]
+ public static extern int* DoWork(MyStruct* pThis, int* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Default.xml
new file mode 100644
index 00000000..b66bee16
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Default.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int*
+
+ MyStruct*
+
+
+ int*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Latest.cs
new file mode 100644
index 00000000..c44dcce0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Latest.cs
@@ -0,0 +1,11 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [NativeTypeName("struct MyStruct : MyTemplate")]
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.ThisCall, EntryPoint = "_ZN10MyTemplateIiE6DoWorkEPi", ExactSpelling = true)]
+ public static extern int* DoWork(MyStruct* pThis, int* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Latest.xml
new file mode 100644
index 00000000..b66bee16
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Latest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int*
+
+ MyStruct*
+
+
+ int*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Preview.cs
new file mode 100644
index 00000000..c44dcce0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Preview.cs
@@ -0,0 +1,11 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [NativeTypeName("struct MyStruct : MyTemplate")]
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.ThisCall, EntryPoint = "_ZN10MyTemplateIiE6DoWorkEPi", ExactSpelling = true)]
+ public static extern int* DoWork(MyStruct* pThis, int* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Preview.xml
new file mode 100644
index 00000000..b66bee16
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Unix.Preview.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int*
+
+ MyStruct*
+
+
+ int*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Compatible.cs
new file mode 100644
index 00000000..11635723
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Compatible.cs
@@ -0,0 +1,11 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [NativeTypeName("struct MyStruct : MyTemplate")]
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.ThisCall, EntryPoint = "?DoWork@?$MyTemplate@H@@QEAAPEAHPEAH@Z", ExactSpelling = true)]
+ public static extern int* DoWork(MyStruct* pThis, int* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Compatible.xml
new file mode 100644
index 00000000..412e9c2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Compatible.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int*
+
+ MyStruct*
+
+
+ int*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Default.cs
new file mode 100644
index 00000000..11635723
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Default.cs
@@ -0,0 +1,11 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [NativeTypeName("struct MyStruct : MyTemplate")]
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.ThisCall, EntryPoint = "?DoWork@?$MyTemplate@H@@QEAAPEAHPEAH@Z", ExactSpelling = true)]
+ public static extern int* DoWork(MyStruct* pThis, int* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Default.xml
new file mode 100644
index 00000000..412e9c2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Default.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int*
+
+ MyStruct*
+
+
+ int*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Latest.cs
new file mode 100644
index 00000000..11635723
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Latest.cs
@@ -0,0 +1,11 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [NativeTypeName("struct MyStruct : MyTemplate")]
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.ThisCall, EntryPoint = "?DoWork@?$MyTemplate@H@@QEAAPEAHPEAH@Z", ExactSpelling = true)]
+ public static extern int* DoWork(MyStruct* pThis, int* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Latest.xml
new file mode 100644
index 00000000..412e9c2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Latest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int*
+
+ MyStruct*
+
+
+ int*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Preview.cs
new file mode 100644
index 00000000..11635723
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Preview.cs
@@ -0,0 +1,11 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [NativeTypeName("struct MyStruct : MyTemplate")]
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.ThisCall, EntryPoint = "?DoWork@?$MyTemplate@H@@QEAAPEAHPEAH@Z", ExactSpelling = true)]
+ public static extern int* DoWork(MyStruct* pThis, int* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Preview.xml
new file mode 100644
index 00000000..412e9c2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DefaultParameterInheritedFromTemplateTest.Windows.Preview.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int*
+
+ MyStruct*
+
+
+ int*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Compatible.cs
new file mode 100644
index 00000000..c7b76763
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Compatible.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public void Dispose()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Compatible.xml
new file mode 100644
index 00000000..9223ae48
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Default.cs
new file mode 100644
index 00000000..c7b76763
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Default.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public void Dispose()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Default.xml
new file mode 100644
index 00000000..9223ae48
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Latest.cs
new file mode 100644
index 00000000..c7b76763
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Latest.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public void Dispose()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Latest.xml
new file mode 100644
index 00000000..9223ae48
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Preview.cs
new file mode 100644
index 00000000..c7b76763
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Preview.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public void Dispose()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Preview.xml
new file mode 100644
index 00000000..9223ae48
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Unix.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Compatible.cs
new file mode 100644
index 00000000..c7b76763
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Compatible.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public void Dispose()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Compatible.xml
new file mode 100644
index 00000000..9223ae48
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Default.cs
new file mode 100644
index 00000000..c7b76763
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Default.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public void Dispose()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Default.xml
new file mode 100644
index 00000000..9223ae48
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Latest.cs
new file mode 100644
index 00000000..c7b76763
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Latest.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public void Dispose()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Latest.xml
new file mode 100644
index 00000000..9223ae48
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Preview.cs
new file mode 100644
index 00000000..c7b76763
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Preview.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public void Dispose()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Preview.xml
new file mode 100644
index 00000000..9223ae48
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.DestructorTest.Windows.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Compatible.cs
new file mode 100644
index 00000000..d1204429
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Compatible.cs
@@ -0,0 +1,20 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.ThisCall, EntryPoint = "_ZN8MyStruct12MyVoidMethodEv", ExactSpelling = true)]
+ public static extern void MyVoidMethod(MyStruct* pThis);
+
+ public int MyInt32Method()
+ {
+ return 0;
+ }
+
+ public void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Compatible.xml
new file mode 100644
index 00000000..c68a9c76
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Compatible.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+ MyStruct*
+
+
+
+ int
+ return 0;
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Default.cs
new file mode 100644
index 00000000..d1204429
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Default.cs
@@ -0,0 +1,20 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.ThisCall, EntryPoint = "_ZN8MyStruct12MyVoidMethodEv", ExactSpelling = true)]
+ public static extern void MyVoidMethod(MyStruct* pThis);
+
+ public int MyInt32Method()
+ {
+ return 0;
+ }
+
+ public void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Default.xml
new file mode 100644
index 00000000..c68a9c76
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Default.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+ MyStruct*
+
+
+
+ int
+ return 0;
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Latest.cs
new file mode 100644
index 00000000..d1204429
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Latest.cs
@@ -0,0 +1,20 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.ThisCall, EntryPoint = "_ZN8MyStruct12MyVoidMethodEv", ExactSpelling = true)]
+ public static extern void MyVoidMethod(MyStruct* pThis);
+
+ public int MyInt32Method()
+ {
+ return 0;
+ }
+
+ public void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Latest.xml
new file mode 100644
index 00000000..c68a9c76
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Latest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+ MyStruct*
+
+
+
+ int
+ return 0;
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Preview.cs
new file mode 100644
index 00000000..d1204429
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Preview.cs
@@ -0,0 +1,20 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.ThisCall, EntryPoint = "_ZN8MyStruct12MyVoidMethodEv", ExactSpelling = true)]
+ public static extern void MyVoidMethod(MyStruct* pThis);
+
+ public int MyInt32Method()
+ {
+ return 0;
+ }
+
+ public void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Preview.xml
new file mode 100644
index 00000000..c68a9c76
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Unix.Preview.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+ MyStruct*
+
+
+
+ int
+ return 0;
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Compatible.cs
new file mode 100644
index 00000000..da8c52c6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Compatible.cs
@@ -0,0 +1,20 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.ThisCall, EntryPoint = "?MyVoidMethod@MyStruct@@QEAAXXZ", ExactSpelling = true)]
+ public static extern void MyVoidMethod(MyStruct* pThis);
+
+ public int MyInt32Method()
+ {
+ return 0;
+ }
+
+ public void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Compatible.xml
new file mode 100644
index 00000000..f874b78c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Compatible.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+ MyStruct*
+
+
+
+ int
+ return 0;
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Default.cs
new file mode 100644
index 00000000..da8c52c6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Default.cs
@@ -0,0 +1,20 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.ThisCall, EntryPoint = "?MyVoidMethod@MyStruct@@QEAAXXZ", ExactSpelling = true)]
+ public static extern void MyVoidMethod(MyStruct* pThis);
+
+ public int MyInt32Method()
+ {
+ return 0;
+ }
+
+ public void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Default.xml
new file mode 100644
index 00000000..f874b78c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Default.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+ MyStruct*
+
+
+
+ int
+ return 0;
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Latest.cs
new file mode 100644
index 00000000..da8c52c6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Latest.cs
@@ -0,0 +1,20 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.ThisCall, EntryPoint = "?MyVoidMethod@MyStruct@@QEAAXXZ", ExactSpelling = true)]
+ public static extern void MyVoidMethod(MyStruct* pThis);
+
+ public int MyInt32Method()
+ {
+ return 0;
+ }
+
+ public void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Latest.xml
new file mode 100644
index 00000000..f874b78c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Latest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+ MyStruct*
+
+
+
+ int
+ return 0;
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Preview.cs
new file mode 100644
index 00000000..da8c52c6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Preview.cs
@@ -0,0 +1,20 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.ThisCall, EntryPoint = "?MyVoidMethod@MyStruct@@QEAAXXZ", ExactSpelling = true)]
+ public static extern void MyVoidMethod(MyStruct* pThis);
+
+ public int MyInt32Method()
+ {
+ return 0;
+ }
+
+ public void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Preview.xml
new file mode 100644
index 00000000..f874b78c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.InstanceTest.Windows.Preview.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+ MyStruct*
+
+
+
+ int
+ return 0;
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Compatible.cs
new file mode 100644
index 00000000..23d2e43e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Compatible.cs
@@ -0,0 +1,19 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct context_t
+ {
+ [NativeTypeName("unsigned char *")]
+ public byte* buf;
+
+ public int size;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int buf_close(void* pContext)
+ {
+ ((context_t*)(pContext))->buf = null;
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Compatible.xml
new file mode 100644
index 00000000..9bc0af1b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Compatible.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+ byte*
+
+
+ int
+
+
+
+
+ int
+
+ void*
+
+ ((context_t*)(pContext))->buf = null;
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Default.cs
new file mode 100644
index 00000000..23d2e43e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Default.cs
@@ -0,0 +1,19 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct context_t
+ {
+ [NativeTypeName("unsigned char *")]
+ public byte* buf;
+
+ public int size;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int buf_close(void* pContext)
+ {
+ ((context_t*)(pContext))->buf = null;
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Default.xml
new file mode 100644
index 00000000..9bc0af1b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Default.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+ byte*
+
+
+ int
+
+
+
+
+ int
+
+ void*
+
+ ((context_t*)(pContext))->buf = null;
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Latest.cs
new file mode 100644
index 00000000..23d2e43e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Latest.cs
@@ -0,0 +1,19 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct context_t
+ {
+ [NativeTypeName("unsigned char *")]
+ public byte* buf;
+
+ public int size;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int buf_close(void* pContext)
+ {
+ ((context_t*)(pContext))->buf = null;
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Latest.xml
new file mode 100644
index 00000000..9bc0af1b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Latest.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+ byte*
+
+
+ int
+
+
+
+
+ int
+
+ void*
+
+ ((context_t*)(pContext))->buf = null;
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Preview.cs
new file mode 100644
index 00000000..23d2e43e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Preview.cs
@@ -0,0 +1,19 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct context_t
+ {
+ [NativeTypeName("unsigned char *")]
+ public byte* buf;
+
+ public int size;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int buf_close(void* pContext)
+ {
+ ((context_t*)(pContext))->buf = null;
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Preview.xml
new file mode 100644
index 00000000..9bc0af1b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Unix.Preview.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+ byte*
+
+
+ int
+
+
+
+
+ int
+
+ void*
+
+ ((context_t*)(pContext))->buf = null;
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Compatible.cs
new file mode 100644
index 00000000..23d2e43e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Compatible.cs
@@ -0,0 +1,19 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct context_t
+ {
+ [NativeTypeName("unsigned char *")]
+ public byte* buf;
+
+ public int size;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int buf_close(void* pContext)
+ {
+ ((context_t*)(pContext))->buf = null;
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Compatible.xml
new file mode 100644
index 00000000..9bc0af1b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Compatible.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+ byte*
+
+
+ int
+
+
+
+
+ int
+
+ void*
+
+ ((context_t*)(pContext))->buf = null;
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Default.cs
new file mode 100644
index 00000000..23d2e43e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Default.cs
@@ -0,0 +1,19 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct context_t
+ {
+ [NativeTypeName("unsigned char *")]
+ public byte* buf;
+
+ public int size;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int buf_close(void* pContext)
+ {
+ ((context_t*)(pContext))->buf = null;
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Default.xml
new file mode 100644
index 00000000..9bc0af1b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Default.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+ byte*
+
+
+ int
+
+
+
+
+ int
+
+ void*
+
+ ((context_t*)(pContext))->buf = null;
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Latest.cs
new file mode 100644
index 00000000..23d2e43e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Latest.cs
@@ -0,0 +1,19 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct context_t
+ {
+ [NativeTypeName("unsigned char *")]
+ public byte* buf;
+
+ public int size;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int buf_close(void* pContext)
+ {
+ ((context_t*)(pContext))->buf = null;
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Latest.xml
new file mode 100644
index 00000000..9bc0af1b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Latest.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+ byte*
+
+
+ int
+
+
+
+
+ int
+
+ void*
+
+ ((context_t*)(pContext))->buf = null;
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Preview.cs
new file mode 100644
index 00000000..23d2e43e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Preview.cs
@@ -0,0 +1,19 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct context_t
+ {
+ [NativeTypeName("unsigned char *")]
+ public byte* buf;
+
+ public int size;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int buf_close(void* pContext)
+ {
+ ((context_t*)(pContext))->buf = null;
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Preview.xml
new file mode 100644
index 00000000..9bc0af1b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MacrosExpansionTest.Windows.Preview.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+ byte*
+
+
+ int
+
+
+
+
+ int
+
+ void*
+
+ ((context_t*)(pContext))->buf = null;
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Compatible.cs
new file mode 100644
index 00000000..f8d3c170
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Compatible.cs
@@ -0,0 +1,35 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction1()
+ {
+ return value;
+ }
+
+ public int MyFunction2()
+ {
+ return MyFunction1();
+ }
+
+ public int MyFunction3()
+ {
+ return this.MyFunction1();
+ }
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int MyFunctionA(MyStruct x)
+ {
+ return x.MyFunction1();
+ }
+
+ public static int MyFunctionB(MyStruct* x)
+ {
+ return x->MyFunction2();
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Compatible.xml
new file mode 100644
index 00000000..84cbc6a0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Compatible.xml
@@ -0,0 +1,38 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+ int
+ return MyFunction1();
+
+
+ int
+ return this.MyFunction1();
+
+
+
+
+ int
+
+ MyStruct
+
+ return x.MyFunction1();
+
+
+ int
+
+ MyStruct*
+
+ return x->MyFunction2();
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Default.cs
new file mode 100644
index 00000000..f8d3c170
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Default.cs
@@ -0,0 +1,35 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction1()
+ {
+ return value;
+ }
+
+ public int MyFunction2()
+ {
+ return MyFunction1();
+ }
+
+ public int MyFunction3()
+ {
+ return this.MyFunction1();
+ }
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int MyFunctionA(MyStruct x)
+ {
+ return x.MyFunction1();
+ }
+
+ public static int MyFunctionB(MyStruct* x)
+ {
+ return x->MyFunction2();
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Default.xml
new file mode 100644
index 00000000..84cbc6a0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Default.xml
@@ -0,0 +1,38 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+ int
+ return MyFunction1();
+
+
+ int
+ return this.MyFunction1();
+
+
+
+
+ int
+
+ MyStruct
+
+ return x.MyFunction1();
+
+
+ int
+
+ MyStruct*
+
+ return x->MyFunction2();
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Latest.cs
new file mode 100644
index 00000000..f8d3c170
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Latest.cs
@@ -0,0 +1,35 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction1()
+ {
+ return value;
+ }
+
+ public int MyFunction2()
+ {
+ return MyFunction1();
+ }
+
+ public int MyFunction3()
+ {
+ return this.MyFunction1();
+ }
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int MyFunctionA(MyStruct x)
+ {
+ return x.MyFunction1();
+ }
+
+ public static int MyFunctionB(MyStruct* x)
+ {
+ return x->MyFunction2();
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Latest.xml
new file mode 100644
index 00000000..84cbc6a0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Latest.xml
@@ -0,0 +1,38 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+ int
+ return MyFunction1();
+
+
+ int
+ return this.MyFunction1();
+
+
+
+
+ int
+
+ MyStruct
+
+ return x.MyFunction1();
+
+
+ int
+
+ MyStruct*
+
+ return x->MyFunction2();
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Preview.cs
new file mode 100644
index 00000000..f8d3c170
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Preview.cs
@@ -0,0 +1,35 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction1()
+ {
+ return value;
+ }
+
+ public int MyFunction2()
+ {
+ return MyFunction1();
+ }
+
+ public int MyFunction3()
+ {
+ return this.MyFunction1();
+ }
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int MyFunctionA(MyStruct x)
+ {
+ return x.MyFunction1();
+ }
+
+ public static int MyFunctionB(MyStruct* x)
+ {
+ return x->MyFunction2();
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Preview.xml
new file mode 100644
index 00000000..84cbc6a0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Unix.Preview.xml
@@ -0,0 +1,38 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+ int
+ return MyFunction1();
+
+
+ int
+ return this.MyFunction1();
+
+
+
+
+ int
+
+ MyStruct
+
+ return x.MyFunction1();
+
+
+ int
+
+ MyStruct*
+
+ return x->MyFunction2();
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Compatible.cs
new file mode 100644
index 00000000..f8d3c170
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Compatible.cs
@@ -0,0 +1,35 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction1()
+ {
+ return value;
+ }
+
+ public int MyFunction2()
+ {
+ return MyFunction1();
+ }
+
+ public int MyFunction3()
+ {
+ return this.MyFunction1();
+ }
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int MyFunctionA(MyStruct x)
+ {
+ return x.MyFunction1();
+ }
+
+ public static int MyFunctionB(MyStruct* x)
+ {
+ return x->MyFunction2();
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Compatible.xml
new file mode 100644
index 00000000..84cbc6a0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Compatible.xml
@@ -0,0 +1,38 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+ int
+ return MyFunction1();
+
+
+ int
+ return this.MyFunction1();
+
+
+
+
+ int
+
+ MyStruct
+
+ return x.MyFunction1();
+
+
+ int
+
+ MyStruct*
+
+ return x->MyFunction2();
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Default.cs
new file mode 100644
index 00000000..f8d3c170
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Default.cs
@@ -0,0 +1,35 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction1()
+ {
+ return value;
+ }
+
+ public int MyFunction2()
+ {
+ return MyFunction1();
+ }
+
+ public int MyFunction3()
+ {
+ return this.MyFunction1();
+ }
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int MyFunctionA(MyStruct x)
+ {
+ return x.MyFunction1();
+ }
+
+ public static int MyFunctionB(MyStruct* x)
+ {
+ return x->MyFunction2();
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Default.xml
new file mode 100644
index 00000000..84cbc6a0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Default.xml
@@ -0,0 +1,38 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+ int
+ return MyFunction1();
+
+
+ int
+ return this.MyFunction1();
+
+
+
+
+ int
+
+ MyStruct
+
+ return x.MyFunction1();
+
+
+ int
+
+ MyStruct*
+
+ return x->MyFunction2();
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Latest.cs
new file mode 100644
index 00000000..f8d3c170
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Latest.cs
@@ -0,0 +1,35 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction1()
+ {
+ return value;
+ }
+
+ public int MyFunction2()
+ {
+ return MyFunction1();
+ }
+
+ public int MyFunction3()
+ {
+ return this.MyFunction1();
+ }
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int MyFunctionA(MyStruct x)
+ {
+ return x.MyFunction1();
+ }
+
+ public static int MyFunctionB(MyStruct* x)
+ {
+ return x->MyFunction2();
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Latest.xml
new file mode 100644
index 00000000..84cbc6a0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Latest.xml
@@ -0,0 +1,38 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+ int
+ return MyFunction1();
+
+
+ int
+ return this.MyFunction1();
+
+
+
+
+ int
+
+ MyStruct
+
+ return x.MyFunction1();
+
+
+ int
+
+ MyStruct*
+
+ return x->MyFunction2();
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Preview.cs
new file mode 100644
index 00000000..f8d3c170
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Preview.cs
@@ -0,0 +1,35 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction1()
+ {
+ return value;
+ }
+
+ public int MyFunction2()
+ {
+ return MyFunction1();
+ }
+
+ public int MyFunction3()
+ {
+ return this.MyFunction1();
+ }
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int MyFunctionA(MyStruct x)
+ {
+ return x.MyFunction1();
+ }
+
+ public static int MyFunctionB(MyStruct* x)
+ {
+ return x->MyFunction2();
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Preview.xml
new file mode 100644
index 00000000..84cbc6a0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberCallTest.Windows.Preview.xml
@@ -0,0 +1,38 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+ int
+ return MyFunction1();
+
+
+ int
+ return this.MyFunction1();
+
+
+
+
+ int
+
+ MyStruct
+
+ return x.MyFunction1();
+
+
+ int
+
+ MyStruct*
+
+ return x->MyFunction2();
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Compatible.cs
new file mode 100644
index 00000000..74115c12
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Compatible.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction()
+ {
+ return value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Compatible.xml
new file mode 100644
index 00000000..c0c48e91
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Default.cs
new file mode 100644
index 00000000..74115c12
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Default.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction()
+ {
+ return value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Default.xml
new file mode 100644
index 00000000..c0c48e91
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Latest.cs
new file mode 100644
index 00000000..74115c12
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Latest.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction()
+ {
+ return value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Latest.xml
new file mode 100644
index 00000000..c0c48e91
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Preview.cs
new file mode 100644
index 00000000..74115c12
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Preview.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction()
+ {
+ return value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Preview.xml
new file mode 100644
index 00000000..c0c48e91
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Unix.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Compatible.cs
new file mode 100644
index 00000000..74115c12
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Compatible.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction()
+ {
+ return value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Compatible.xml
new file mode 100644
index 00000000..c0c48e91
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Default.cs
new file mode 100644
index 00000000..74115c12
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Default.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction()
+ {
+ return value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Default.xml
new file mode 100644
index 00000000..c0c48e91
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Latest.cs
new file mode 100644
index 00000000..74115c12
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Latest.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction()
+ {
+ return value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Latest.xml
new file mode 100644
index 00000000..c0c48e91
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Preview.cs
new file mode 100644
index 00000000..74115c12
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Preview.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction()
+ {
+ return value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Preview.xml
new file mode 100644
index 00000000..c0c48e91
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.MemberTest.Windows.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Compatible.cs
new file mode 100644
index 00000000..790dfed4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Compatible.cs
@@ -0,0 +1,75 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int Equals()
+ {
+ return 0;
+ }
+
+ public int Equals(int obj)
+ {
+ return 0;
+ }
+
+ public int Dispose()
+ {
+ return 0;
+ }
+
+ public int Dispose(int obj)
+ {
+ return 0;
+ }
+
+ public new int GetHashCode()
+ {
+ return 0;
+ }
+
+ public int GetHashCode(int obj)
+ {
+ return 0;
+ }
+
+ public new int GetType()
+ {
+ return 0;
+ }
+
+ public int GetType(int obj)
+ {
+ return 0;
+ }
+
+ public new int MemberwiseClone()
+ {
+ return 0;
+ }
+
+ public int MemberwiseClone(int obj)
+ {
+ return 0;
+ }
+
+ public int ReferenceEquals()
+ {
+ return 0;
+ }
+
+ public int ReferenceEquals(int obj)
+ {
+ return 0;
+ }
+
+ public new int ToString()
+ {
+ return 0;
+ }
+
+ public int ToString(int obj)
+ {
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Compatible.xml
new file mode 100644
index 00000000..bdfd1a3b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Compatible.xml
@@ -0,0 +1,84 @@
+
+
+
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Default.cs
new file mode 100644
index 00000000..790dfed4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Default.cs
@@ -0,0 +1,75 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int Equals()
+ {
+ return 0;
+ }
+
+ public int Equals(int obj)
+ {
+ return 0;
+ }
+
+ public int Dispose()
+ {
+ return 0;
+ }
+
+ public int Dispose(int obj)
+ {
+ return 0;
+ }
+
+ public new int GetHashCode()
+ {
+ return 0;
+ }
+
+ public int GetHashCode(int obj)
+ {
+ return 0;
+ }
+
+ public new int GetType()
+ {
+ return 0;
+ }
+
+ public int GetType(int obj)
+ {
+ return 0;
+ }
+
+ public new int MemberwiseClone()
+ {
+ return 0;
+ }
+
+ public int MemberwiseClone(int obj)
+ {
+ return 0;
+ }
+
+ public int ReferenceEquals()
+ {
+ return 0;
+ }
+
+ public int ReferenceEquals(int obj)
+ {
+ return 0;
+ }
+
+ public new int ToString()
+ {
+ return 0;
+ }
+
+ public int ToString(int obj)
+ {
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Default.xml
new file mode 100644
index 00000000..bdfd1a3b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Default.xml
@@ -0,0 +1,84 @@
+
+
+
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Latest.cs
new file mode 100644
index 00000000..790dfed4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Latest.cs
@@ -0,0 +1,75 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int Equals()
+ {
+ return 0;
+ }
+
+ public int Equals(int obj)
+ {
+ return 0;
+ }
+
+ public int Dispose()
+ {
+ return 0;
+ }
+
+ public int Dispose(int obj)
+ {
+ return 0;
+ }
+
+ public new int GetHashCode()
+ {
+ return 0;
+ }
+
+ public int GetHashCode(int obj)
+ {
+ return 0;
+ }
+
+ public new int GetType()
+ {
+ return 0;
+ }
+
+ public int GetType(int obj)
+ {
+ return 0;
+ }
+
+ public new int MemberwiseClone()
+ {
+ return 0;
+ }
+
+ public int MemberwiseClone(int obj)
+ {
+ return 0;
+ }
+
+ public int ReferenceEquals()
+ {
+ return 0;
+ }
+
+ public int ReferenceEquals(int obj)
+ {
+ return 0;
+ }
+
+ public new int ToString()
+ {
+ return 0;
+ }
+
+ public int ToString(int obj)
+ {
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Latest.xml
new file mode 100644
index 00000000..bdfd1a3b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Latest.xml
@@ -0,0 +1,84 @@
+
+
+
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Preview.cs
new file mode 100644
index 00000000..790dfed4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Preview.cs
@@ -0,0 +1,75 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int Equals()
+ {
+ return 0;
+ }
+
+ public int Equals(int obj)
+ {
+ return 0;
+ }
+
+ public int Dispose()
+ {
+ return 0;
+ }
+
+ public int Dispose(int obj)
+ {
+ return 0;
+ }
+
+ public new int GetHashCode()
+ {
+ return 0;
+ }
+
+ public int GetHashCode(int obj)
+ {
+ return 0;
+ }
+
+ public new int GetType()
+ {
+ return 0;
+ }
+
+ public int GetType(int obj)
+ {
+ return 0;
+ }
+
+ public new int MemberwiseClone()
+ {
+ return 0;
+ }
+
+ public int MemberwiseClone(int obj)
+ {
+ return 0;
+ }
+
+ public int ReferenceEquals()
+ {
+ return 0;
+ }
+
+ public int ReferenceEquals(int obj)
+ {
+ return 0;
+ }
+
+ public new int ToString()
+ {
+ return 0;
+ }
+
+ public int ToString(int obj)
+ {
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Preview.xml
new file mode 100644
index 00000000..bdfd1a3b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Unix.Preview.xml
@@ -0,0 +1,84 @@
+
+
+
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Compatible.cs
new file mode 100644
index 00000000..790dfed4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Compatible.cs
@@ -0,0 +1,75 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int Equals()
+ {
+ return 0;
+ }
+
+ public int Equals(int obj)
+ {
+ return 0;
+ }
+
+ public int Dispose()
+ {
+ return 0;
+ }
+
+ public int Dispose(int obj)
+ {
+ return 0;
+ }
+
+ public new int GetHashCode()
+ {
+ return 0;
+ }
+
+ public int GetHashCode(int obj)
+ {
+ return 0;
+ }
+
+ public new int GetType()
+ {
+ return 0;
+ }
+
+ public int GetType(int obj)
+ {
+ return 0;
+ }
+
+ public new int MemberwiseClone()
+ {
+ return 0;
+ }
+
+ public int MemberwiseClone(int obj)
+ {
+ return 0;
+ }
+
+ public int ReferenceEquals()
+ {
+ return 0;
+ }
+
+ public int ReferenceEquals(int obj)
+ {
+ return 0;
+ }
+
+ public new int ToString()
+ {
+ return 0;
+ }
+
+ public int ToString(int obj)
+ {
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Compatible.xml
new file mode 100644
index 00000000..bdfd1a3b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Compatible.xml
@@ -0,0 +1,84 @@
+
+
+
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Default.cs
new file mode 100644
index 00000000..790dfed4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Default.cs
@@ -0,0 +1,75 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int Equals()
+ {
+ return 0;
+ }
+
+ public int Equals(int obj)
+ {
+ return 0;
+ }
+
+ public int Dispose()
+ {
+ return 0;
+ }
+
+ public int Dispose(int obj)
+ {
+ return 0;
+ }
+
+ public new int GetHashCode()
+ {
+ return 0;
+ }
+
+ public int GetHashCode(int obj)
+ {
+ return 0;
+ }
+
+ public new int GetType()
+ {
+ return 0;
+ }
+
+ public int GetType(int obj)
+ {
+ return 0;
+ }
+
+ public new int MemberwiseClone()
+ {
+ return 0;
+ }
+
+ public int MemberwiseClone(int obj)
+ {
+ return 0;
+ }
+
+ public int ReferenceEquals()
+ {
+ return 0;
+ }
+
+ public int ReferenceEquals(int obj)
+ {
+ return 0;
+ }
+
+ public new int ToString()
+ {
+ return 0;
+ }
+
+ public int ToString(int obj)
+ {
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Default.xml
new file mode 100644
index 00000000..bdfd1a3b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Default.xml
@@ -0,0 +1,84 @@
+
+
+
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Latest.cs
new file mode 100644
index 00000000..790dfed4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Latest.cs
@@ -0,0 +1,75 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int Equals()
+ {
+ return 0;
+ }
+
+ public int Equals(int obj)
+ {
+ return 0;
+ }
+
+ public int Dispose()
+ {
+ return 0;
+ }
+
+ public int Dispose(int obj)
+ {
+ return 0;
+ }
+
+ public new int GetHashCode()
+ {
+ return 0;
+ }
+
+ public int GetHashCode(int obj)
+ {
+ return 0;
+ }
+
+ public new int GetType()
+ {
+ return 0;
+ }
+
+ public int GetType(int obj)
+ {
+ return 0;
+ }
+
+ public new int MemberwiseClone()
+ {
+ return 0;
+ }
+
+ public int MemberwiseClone(int obj)
+ {
+ return 0;
+ }
+
+ public int ReferenceEquals()
+ {
+ return 0;
+ }
+
+ public int ReferenceEquals(int obj)
+ {
+ return 0;
+ }
+
+ public new int ToString()
+ {
+ return 0;
+ }
+
+ public int ToString(int obj)
+ {
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Latest.xml
new file mode 100644
index 00000000..bdfd1a3b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Latest.xml
@@ -0,0 +1,84 @@
+
+
+
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Preview.cs
new file mode 100644
index 00000000..790dfed4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Preview.cs
@@ -0,0 +1,75 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int Equals()
+ {
+ return 0;
+ }
+
+ public int Equals(int obj)
+ {
+ return 0;
+ }
+
+ public int Dispose()
+ {
+ return 0;
+ }
+
+ public int Dispose(int obj)
+ {
+ return 0;
+ }
+
+ public new int GetHashCode()
+ {
+ return 0;
+ }
+
+ public int GetHashCode(int obj)
+ {
+ return 0;
+ }
+
+ public new int GetType()
+ {
+ return 0;
+ }
+
+ public int GetType(int obj)
+ {
+ return 0;
+ }
+
+ public new int MemberwiseClone()
+ {
+ return 0;
+ }
+
+ public int MemberwiseClone(int obj)
+ {
+ return 0;
+ }
+
+ public int ReferenceEquals()
+ {
+ return 0;
+ }
+
+ public int ReferenceEquals(int obj)
+ {
+ return 0;
+ }
+
+ public new int ToString()
+ {
+ return 0;
+ }
+
+ public int ToString(int obj)
+ {
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Preview.xml
new file mode 100644
index 00000000..bdfd1a3b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordTest.Windows.Preview.xml
@@ -0,0 +1,84 @@
+
+
+
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+ int
+ return 0;
+
+
+ int
+
+ int
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Compatible.cs
new file mode 100644
index 00000000..c6947a8d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Compatible.cs
@@ -0,0 +1,43 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _GetType(MyStruct* pThis, int obj);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _GetType1(MyStruct* pThis);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _GetType2(MyStruct* pThis, int objA, int objB);
+
+ public int GetType(int obj)
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType>((IntPtr)(lpVtbl[0]))(pThis, obj);
+ }
+ }
+
+ public new int GetType()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType1>((IntPtr)(lpVtbl[1]))(pThis);
+ }
+ }
+
+ public int GetType(int objA, int objB)
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType2>((IntPtr)(lpVtbl[2]))(pThis, objA, objB);
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Compatible.xml
new file mode 100644
index 00000000..7a0438cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Compatible.xml
@@ -0,0 +1,73 @@
+
+
+
+
+
+ void**
+
+
+ int
+
+ MyStruct*
+
+
+ int
+
+
+
+ int
+
+ MyStruct*
+
+
+
+ int
+
+ MyStruct*
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType>((IntPtr)(lpVtbl[0]))(pThis, obj);
+ }
+
+
+
+ int
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType1>((IntPtr)(lpVtbl[1]))(pThis);
+ }
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType2>((IntPtr)(lpVtbl[2]))(pThis, objA, objB);
+ }
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Default.cs
new file mode 100644
index 00000000..43e838c8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Default.cs
@@ -0,0 +1,24 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ public int GetType(int obj)
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this), obj);
+ }
+
+ public new int GetType()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int GetType(int objA, int objB)
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Default.xml
new file mode 100644
index 00000000..00072249
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Default.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+ void**
+
+
+ int
+
+ int
+
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int, int>)(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this), obj);
+
+
+
+ int
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int, int, int>)(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Latest.cs
new file mode 100644
index 00000000..43e838c8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Latest.cs
@@ -0,0 +1,24 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ public int GetType(int obj)
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this), obj);
+ }
+
+ public new int GetType()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int GetType(int objA, int objB)
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Latest.xml
new file mode 100644
index 00000000..00072249
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Latest.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+ void**
+
+
+ int
+
+ int
+
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int, int>)(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this), obj);
+
+
+
+ int
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int, int, int>)(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Preview.cs
new file mode 100644
index 00000000..43e838c8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Preview.cs
@@ -0,0 +1,24 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ public int GetType(int obj)
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this), obj);
+ }
+
+ public new int GetType()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int GetType(int objA, int objB)
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Preview.xml
new file mode 100644
index 00000000..00072249
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Unix.Preview.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+ void**
+
+
+ int
+
+ int
+
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int, int>)(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this), obj);
+
+
+
+ int
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int, int, int>)(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Compatible.cs
new file mode 100644
index 00000000..6333da6b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Compatible.cs
@@ -0,0 +1,43 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _GetType(MyStruct* pThis, int objA, int objB);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _GetType1(MyStruct* pThis);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _GetType2(MyStruct* pThis, int obj);
+
+ public int GetType(int objA, int objB)
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType>((IntPtr)(lpVtbl[0]))(pThis, objA, objB);
+ }
+ }
+
+ public new int GetType()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType1>((IntPtr)(lpVtbl[1]))(pThis);
+ }
+ }
+
+ public int GetType(int obj)
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType2>((IntPtr)(lpVtbl[2]))(pThis, obj);
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Compatible.xml
new file mode 100644
index 00000000..f5e1b276
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Compatible.xml
@@ -0,0 +1,73 @@
+
+
+
+
+
+ void**
+
+
+ int
+
+ MyStruct*
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ MyStruct*
+
+
+
+ int
+
+ MyStruct*
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType>((IntPtr)(lpVtbl[0]))(pThis, objA, objB);
+ }
+
+
+
+ int
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType1>((IntPtr)(lpVtbl[1]))(pThis);
+ }
+
+
+
+ int
+
+ int
+
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType2>((IntPtr)(lpVtbl[2]))(pThis, obj);
+ }
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Default.cs
new file mode 100644
index 00000000..c6a33d7d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Default.cs
@@ -0,0 +1,24 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ public int GetType(int objA, int objB)
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+ }
+
+ public new int GetType()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int GetType(int obj)
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this), obj);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Default.xml
new file mode 100644
index 00000000..b7ebefa1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Default.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+ void**
+
+
+ int
+
+ int
+
+
+ int
+
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int, int, int>)(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+
+
+
+ int
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ int
+
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int, int>)(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this), obj);
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Latest.cs
new file mode 100644
index 00000000..c6a33d7d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Latest.cs
@@ -0,0 +1,24 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ public int GetType(int objA, int objB)
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+ }
+
+ public new int GetType()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int GetType(int obj)
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this), obj);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Latest.xml
new file mode 100644
index 00000000..b7ebefa1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Latest.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+ void**
+
+
+ int
+
+ int
+
+
+ int
+
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int, int, int>)(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+
+
+
+ int
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ int
+
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int, int>)(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this), obj);
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Preview.cs
new file mode 100644
index 00000000..c6a33d7d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Preview.cs
@@ -0,0 +1,24 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ public int GetType(int objA, int objB)
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+ }
+
+ public new int GetType()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int GetType(int obj)
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this), obj);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Preview.xml
new file mode 100644
index 00000000..b7ebefa1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualTest.Windows.Preview.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+ void**
+
+
+ int
+
+ int
+
+
+ int
+
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int, int, int>)(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+
+
+
+ int
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ int
+
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int, int>)(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this), obj);
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Compatible.cs
new file mode 100644
index 00000000..ad6830b1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Compatible.cs
@@ -0,0 +1,64 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct : MyStruct.Interface
+ {
+ public Vtbl* lpVtbl;
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _GetType(MyStruct* pThis, int obj);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _GetType1(MyStruct* pThis);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _GetType2(MyStruct* pThis, int objA, int objB);
+
+ public int GetType(int obj)
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType>(lpVtbl->GetType)(pThis, obj);
+ }
+ }
+
+ public new int GetType()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType1>(lpVtbl->GetType1)(pThis);
+ }
+ }
+
+ public int GetType(int objA, int objB)
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType2>(lpVtbl->GetType2)(pThis, objA, objB);
+ }
+ }
+
+ public interface Interface
+ {
+ int GetType(int obj);
+
+ int GetType();
+
+ int GetType(int objA, int objB);
+ }
+
+ public partial struct Vtbl
+ {
+ [NativeTypeName("int (int)")]
+ public new IntPtr GetType;
+
+ [NativeTypeName("int ()")]
+ public IntPtr GetType1;
+
+ [NativeTypeName("int (int, int)")]
+ public IntPtr GetType2;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Compatible.xml
new file mode 100644
index 00000000..31299001
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Compatible.xml
@@ -0,0 +1,104 @@
+
+
+
+
+
+ Vtbl*
+
+
+ int
+
+ MyStruct*
+
+
+ int
+
+
+
+ int
+
+ MyStruct*
+
+
+
+ int
+
+ MyStruct*
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType>(lpVtbl->GetType)(pThis, obj);
+ }
+
+
+
+ int
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType1>(lpVtbl->GetType1)(pThis);
+ }
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType2>(lpVtbl->GetType2)(pThis, objA, objB);
+ }
+
+
+
+
+ int
+
+ int
+
+
+
+ int
+
+
+ int
+
+ int
+
+
+ int
+
+
+
+
+
+ IntPtr
+
+
+ IntPtr
+
+
+ IntPtr
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Default.cs
new file mode 100644
index 00000000..fda26b8b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Default.cs
@@ -0,0 +1,46 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct : MyStruct.Interface
+ {
+ public Vtbl* lpVtbl;
+
+ public int GetType(int obj)
+ {
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), obj);
+ }
+
+ public new int GetType()
+ {
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int GetType(int objA, int objB)
+ {
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+ }
+
+ public interface Interface
+ {
+ int GetType(int obj);
+
+ int GetType();
+
+ int GetType(int objA, int objB);
+ }
+
+ public partial struct Vtbl
+ where TSelf : unmanaged, Interface
+ {
+ [NativeTypeName("int (int)")]
+ public new delegate* unmanaged[Thiscall] GetType;
+
+ [NativeTypeName("int ()")]
+ public delegate* unmanaged[Thiscall] GetType1;
+
+ [NativeTypeName("int (int, int)")]
+ public delegate* unmanaged[Thiscall] GetType2;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Default.xml
new file mode 100644
index 00000000..b9518f46
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Default.xml
@@ -0,0 +1,68 @@
+
+
+
+
+
+ Vtbl<MyStruct>*
+
+
+ int
+
+ int
+
+
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), obj);
+
+
+
+ int
+
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+
+
+
+
+ int
+
+ int
+
+
+
+ int
+
+
+ int
+
+ int
+
+
+ int
+
+
+
+
+
+ delegate* unmanaged[Thiscall]<TSelf*, int, int>
+
+
+ delegate* unmanaged[Thiscall]<TSelf*, int>
+
+
+ delegate* unmanaged[Thiscall]<TSelf*, int, int, int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Latest.cs
new file mode 100644
index 00000000..fda26b8b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Latest.cs
@@ -0,0 +1,46 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct : MyStruct.Interface
+ {
+ public Vtbl* lpVtbl;
+
+ public int GetType(int obj)
+ {
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), obj);
+ }
+
+ public new int GetType()
+ {
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int GetType(int objA, int objB)
+ {
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+ }
+
+ public interface Interface
+ {
+ int GetType(int obj);
+
+ int GetType();
+
+ int GetType(int objA, int objB);
+ }
+
+ public partial struct Vtbl
+ where TSelf : unmanaged, Interface
+ {
+ [NativeTypeName("int (int)")]
+ public new delegate* unmanaged[Thiscall] GetType;
+
+ [NativeTypeName("int ()")]
+ public delegate* unmanaged[Thiscall] GetType1;
+
+ [NativeTypeName("int (int, int)")]
+ public delegate* unmanaged[Thiscall] GetType2;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Latest.xml
new file mode 100644
index 00000000..b9518f46
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Latest.xml
@@ -0,0 +1,68 @@
+
+
+
+
+
+ Vtbl<MyStruct>*
+
+
+ int
+
+ int
+
+
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), obj);
+
+
+
+ int
+
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+
+
+
+
+ int
+
+ int
+
+
+
+ int
+
+
+ int
+
+ int
+
+
+ int
+
+
+
+
+
+ delegate* unmanaged[Thiscall]<TSelf*, int, int>
+
+
+ delegate* unmanaged[Thiscall]<TSelf*, int>
+
+
+ delegate* unmanaged[Thiscall]<TSelf*, int, int, int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Preview.cs
new file mode 100644
index 00000000..fda26b8b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Preview.cs
@@ -0,0 +1,46 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct : MyStruct.Interface
+ {
+ public Vtbl* lpVtbl;
+
+ public int GetType(int obj)
+ {
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), obj);
+ }
+
+ public new int GetType()
+ {
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int GetType(int objA, int objB)
+ {
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+ }
+
+ public interface Interface
+ {
+ int GetType(int obj);
+
+ int GetType();
+
+ int GetType(int objA, int objB);
+ }
+
+ public partial struct Vtbl
+ where TSelf : unmanaged, Interface
+ {
+ [NativeTypeName("int (int)")]
+ public new delegate* unmanaged[Thiscall] GetType;
+
+ [NativeTypeName("int ()")]
+ public delegate* unmanaged[Thiscall] GetType1;
+
+ [NativeTypeName("int (int, int)")]
+ public delegate* unmanaged[Thiscall] GetType2;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Preview.xml
new file mode 100644
index 00000000..b9518f46
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Unix.Preview.xml
@@ -0,0 +1,68 @@
+
+
+
+
+
+ Vtbl<MyStruct>*
+
+
+ int
+
+ int
+
+
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), obj);
+
+
+
+ int
+
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+
+
+
+
+ int
+
+ int
+
+
+
+ int
+
+
+ int
+
+ int
+
+
+ int
+
+
+
+
+
+ delegate* unmanaged[Thiscall]<TSelf*, int, int>
+
+
+ delegate* unmanaged[Thiscall]<TSelf*, int>
+
+
+ delegate* unmanaged[Thiscall]<TSelf*, int, int, int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Compatible.cs
new file mode 100644
index 00000000..ba92ce4b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Compatible.cs
@@ -0,0 +1,64 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct : MyStruct.Interface
+ {
+ public Vtbl* lpVtbl;
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _GetType(MyStruct* pThis, int objA, int objB);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _GetType1(MyStruct* pThis);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _GetType2(MyStruct* pThis, int obj);
+
+ public int GetType(int objA, int objB)
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType>(lpVtbl->GetType)(pThis, objA, objB);
+ }
+ }
+
+ public new int GetType()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType1>(lpVtbl->GetType1)(pThis);
+ }
+ }
+
+ public int GetType(int obj)
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType2>(lpVtbl->GetType2)(pThis, obj);
+ }
+ }
+
+ public interface Interface
+ {
+ int GetType(int objA, int objB);
+
+ int GetType();
+
+ int GetType(int obj);
+ }
+
+ public partial struct Vtbl
+ {
+ [NativeTypeName("int (int, int)")]
+ public new IntPtr GetType;
+
+ [NativeTypeName("int ()")]
+ public IntPtr GetType1;
+
+ [NativeTypeName("int (int)")]
+ public IntPtr GetType2;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Compatible.xml
new file mode 100644
index 00000000..5525d021
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Compatible.xml
@@ -0,0 +1,104 @@
+
+
+
+
+
+ Vtbl*
+
+
+ int
+
+ MyStruct*
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ MyStruct*
+
+
+
+ int
+
+ MyStruct*
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType>(lpVtbl->GetType)(pThis, objA, objB);
+ }
+
+
+
+ int
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType1>(lpVtbl->GetType1)(pThis);
+ }
+
+
+
+ int
+
+ int
+
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType2>(lpVtbl->GetType2)(pThis, obj);
+ }
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+
+ int
+
+
+ int
+
+ int
+
+
+
+
+
+ IntPtr
+
+
+ IntPtr
+
+
+ IntPtr
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Default.cs
new file mode 100644
index 00000000..0e94284a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Default.cs
@@ -0,0 +1,46 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct : MyStruct.Interface
+ {
+ public Vtbl* lpVtbl;
+
+ public int GetType(int objA, int objB)
+ {
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+ }
+
+ public new int GetType()
+ {
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int GetType(int obj)
+ {
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), obj);
+ }
+
+ public interface Interface
+ {
+ int GetType(int objA, int objB);
+
+ int GetType();
+
+ int GetType(int obj);
+ }
+
+ public partial struct Vtbl
+ where TSelf : unmanaged, Interface
+ {
+ [NativeTypeName("int (int, int)")]
+ public new delegate* unmanaged[Thiscall] GetType;
+
+ [NativeTypeName("int ()")]
+ public delegate* unmanaged[Thiscall] GetType1;
+
+ [NativeTypeName("int (int)")]
+ public delegate* unmanaged[Thiscall] GetType2;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Default.xml
new file mode 100644
index 00000000..273c686f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Default.xml
@@ -0,0 +1,68 @@
+
+
+
+
+
+ Vtbl<MyStruct>*
+
+
+ int
+
+ int
+
+
+ int
+
+
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+
+
+
+ int
+
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ int
+
+
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), obj);
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+
+ int
+
+
+ int
+
+ int
+
+
+
+
+
+ delegate* unmanaged[Thiscall]<TSelf*, int, int, int>
+
+
+ delegate* unmanaged[Thiscall]<TSelf*, int>
+
+
+ delegate* unmanaged[Thiscall]<TSelf*, int, int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Latest.cs
new file mode 100644
index 00000000..0e94284a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Latest.cs
@@ -0,0 +1,46 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct : MyStruct.Interface
+ {
+ public Vtbl* lpVtbl;
+
+ public int GetType(int objA, int objB)
+ {
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+ }
+
+ public new int GetType()
+ {
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int GetType(int obj)
+ {
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), obj);
+ }
+
+ public interface Interface
+ {
+ int GetType(int objA, int objB);
+
+ int GetType();
+
+ int GetType(int obj);
+ }
+
+ public partial struct Vtbl
+ where TSelf : unmanaged, Interface
+ {
+ [NativeTypeName("int (int, int)")]
+ public new delegate* unmanaged[Thiscall] GetType;
+
+ [NativeTypeName("int ()")]
+ public delegate* unmanaged[Thiscall] GetType1;
+
+ [NativeTypeName("int (int)")]
+ public delegate* unmanaged[Thiscall] GetType2;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Latest.xml
new file mode 100644
index 00000000..273c686f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Latest.xml
@@ -0,0 +1,68 @@
+
+
+
+
+
+ Vtbl<MyStruct>*
+
+
+ int
+
+ int
+
+
+ int
+
+
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+
+
+
+ int
+
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ int
+
+
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), obj);
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+
+ int
+
+
+ int
+
+ int
+
+
+
+
+
+ delegate* unmanaged[Thiscall]<TSelf*, int, int, int>
+
+
+ delegate* unmanaged[Thiscall]<TSelf*, int>
+
+
+ delegate* unmanaged[Thiscall]<TSelf*, int, int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Preview.cs
new file mode 100644
index 00000000..0e94284a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Preview.cs
@@ -0,0 +1,46 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct : MyStruct.Interface
+ {
+ public Vtbl* lpVtbl;
+
+ public int GetType(int objA, int objB)
+ {
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+ }
+
+ public new int GetType()
+ {
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int GetType(int obj)
+ {
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), obj);
+ }
+
+ public interface Interface
+ {
+ int GetType(int objA, int objB);
+
+ int GetType();
+
+ int GetType(int obj);
+ }
+
+ public partial struct Vtbl
+ where TSelf : unmanaged, Interface
+ {
+ [NativeTypeName("int (int, int)")]
+ public new delegate* unmanaged[Thiscall] GetType;
+
+ [NativeTypeName("int ()")]
+ public delegate* unmanaged[Thiscall] GetType1;
+
+ [NativeTypeName("int (int)")]
+ public delegate* unmanaged[Thiscall] GetType2;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Preview.xml
new file mode 100644
index 00000000..273c686f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblAndMarkerInterfaceTest.Windows.Preview.xml
@@ -0,0 +1,68 @@
+
+
+
+
+
+ Vtbl<MyStruct>*
+
+
+ int
+
+ int
+
+
+ int
+
+
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+
+
+
+ int
+
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ int
+
+
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), obj);
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+
+ int
+
+
+ int
+
+ int
+
+
+
+
+
+ delegate* unmanaged[Thiscall]<TSelf*, int, int, int>
+
+
+ delegate* unmanaged[Thiscall]<TSelf*, int>
+
+
+ delegate* unmanaged[Thiscall]<TSelf*, int, int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Compatible.cs
new file mode 100644
index 00000000..ef063190
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Compatible.cs
@@ -0,0 +1,55 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public Vtbl* lpVtbl;
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _GetType(MyStruct* pThis, int obj);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _GetType1(MyStruct* pThis);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _GetType2(MyStruct* pThis, int objA, int objB);
+
+ public int GetType(int obj)
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType>(lpVtbl->GetType)(pThis, obj);
+ }
+ }
+
+ public new int GetType()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType1>(lpVtbl->GetType1)(pThis);
+ }
+ }
+
+ public int GetType(int objA, int objB)
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType2>(lpVtbl->GetType2)(pThis, objA, objB);
+ }
+ }
+
+ public partial struct Vtbl
+ {
+ [NativeTypeName("int (int)")]
+ public new IntPtr GetType;
+
+ [NativeTypeName("int ()")]
+ public IntPtr GetType1;
+
+ [NativeTypeName("int (int, int)")]
+ public IntPtr GetType2;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Compatible.xml
new file mode 100644
index 00000000..399f4fe7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Compatible.xml
@@ -0,0 +1,84 @@
+
+
+
+
+
+ Vtbl*
+
+
+ int
+
+ MyStruct*
+
+
+ int
+
+
+
+ int
+
+ MyStruct*
+
+
+
+ int
+
+ MyStruct*
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType>(lpVtbl->GetType)(pThis, obj);
+ }
+
+
+
+ int
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType1>(lpVtbl->GetType1)(pThis);
+ }
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType2>(lpVtbl->GetType2)(pThis, objA, objB);
+ }
+
+
+
+
+ IntPtr
+
+
+ IntPtr
+
+
+ IntPtr
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Default.cs
new file mode 100644
index 00000000..6f5663c8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Default.cs
@@ -0,0 +1,36 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public Vtbl* lpVtbl;
+
+ public int GetType(int obj)
+ {
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), obj);
+ }
+
+ public new int GetType()
+ {
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int GetType(int objA, int objB)
+ {
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+ }
+
+ public partial struct Vtbl
+ {
+ [NativeTypeName("int (int)")]
+ public new delegate* unmanaged[Thiscall] GetType;
+
+ [NativeTypeName("int ()")]
+ public delegate* unmanaged[Thiscall] GetType1;
+
+ [NativeTypeName("int (int, int)")]
+ public delegate* unmanaged[Thiscall] GetType2;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Default.xml
new file mode 100644
index 00000000..bcdcff1b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Default.xml
@@ -0,0 +1,48 @@
+
+
+
+
+
+ Vtbl*
+
+
+ int
+
+ int
+
+
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), obj);
+
+
+
+ int
+
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+
+
+
+
+ delegate* unmanaged[Thiscall]<MyStruct*, int, int>
+
+
+ delegate* unmanaged[Thiscall]<MyStruct*, int>
+
+
+ delegate* unmanaged[Thiscall]<MyStruct*, int, int, int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Latest.cs
new file mode 100644
index 00000000..6f5663c8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Latest.cs
@@ -0,0 +1,36 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public Vtbl* lpVtbl;
+
+ public int GetType(int obj)
+ {
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), obj);
+ }
+
+ public new int GetType()
+ {
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int GetType(int objA, int objB)
+ {
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+ }
+
+ public partial struct Vtbl
+ {
+ [NativeTypeName("int (int)")]
+ public new delegate* unmanaged[Thiscall] GetType;
+
+ [NativeTypeName("int ()")]
+ public delegate* unmanaged[Thiscall] GetType1;
+
+ [NativeTypeName("int (int, int)")]
+ public delegate* unmanaged[Thiscall] GetType2;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Latest.xml
new file mode 100644
index 00000000..bcdcff1b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Latest.xml
@@ -0,0 +1,48 @@
+
+
+
+
+
+ Vtbl*
+
+
+ int
+
+ int
+
+
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), obj);
+
+
+
+ int
+
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+
+
+
+
+ delegate* unmanaged[Thiscall]<MyStruct*, int, int>
+
+
+ delegate* unmanaged[Thiscall]<MyStruct*, int>
+
+
+ delegate* unmanaged[Thiscall]<MyStruct*, int, int, int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Preview.cs
new file mode 100644
index 00000000..6f5663c8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Preview.cs
@@ -0,0 +1,36 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public Vtbl* lpVtbl;
+
+ public int GetType(int obj)
+ {
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), obj);
+ }
+
+ public new int GetType()
+ {
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int GetType(int objA, int objB)
+ {
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+ }
+
+ public partial struct Vtbl
+ {
+ [NativeTypeName("int (int)")]
+ public new delegate* unmanaged[Thiscall] GetType;
+
+ [NativeTypeName("int ()")]
+ public delegate* unmanaged[Thiscall] GetType1;
+
+ [NativeTypeName("int (int, int)")]
+ public delegate* unmanaged[Thiscall] GetType2;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Preview.xml
new file mode 100644
index 00000000..bcdcff1b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Unix.Preview.xml
@@ -0,0 +1,48 @@
+
+
+
+
+
+ Vtbl*
+
+
+ int
+
+ int
+
+
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), obj);
+
+
+
+ int
+
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+
+
+
+
+ delegate* unmanaged[Thiscall]<MyStruct*, int, int>
+
+
+ delegate* unmanaged[Thiscall]<MyStruct*, int>
+
+
+ delegate* unmanaged[Thiscall]<MyStruct*, int, int, int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Compatible.cs
new file mode 100644
index 00000000..b8150a37
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Compatible.cs
@@ -0,0 +1,55 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public Vtbl* lpVtbl;
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _GetType(MyStruct* pThis, int objA, int objB);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _GetType1(MyStruct* pThis);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _GetType2(MyStruct* pThis, int obj);
+
+ public int GetType(int objA, int objB)
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType>(lpVtbl->GetType)(pThis, objA, objB);
+ }
+ }
+
+ public new int GetType()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType1>(lpVtbl->GetType1)(pThis);
+ }
+ }
+
+ public int GetType(int obj)
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType2>(lpVtbl->GetType2)(pThis, obj);
+ }
+ }
+
+ public partial struct Vtbl
+ {
+ [NativeTypeName("int (int, int)")]
+ public new IntPtr GetType;
+
+ [NativeTypeName("int ()")]
+ public IntPtr GetType1;
+
+ [NativeTypeName("int (int)")]
+ public IntPtr GetType2;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Compatible.xml
new file mode 100644
index 00000000..71b122fb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Compatible.xml
@@ -0,0 +1,84 @@
+
+
+
+
+
+ Vtbl*
+
+
+ int
+
+ MyStruct*
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ MyStruct*
+
+
+
+ int
+
+ MyStruct*
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType>(lpVtbl->GetType)(pThis, objA, objB);
+ }
+
+
+
+ int
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType1>(lpVtbl->GetType1)(pThis);
+ }
+
+
+
+ int
+
+ int
+
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_GetType2>(lpVtbl->GetType2)(pThis, obj);
+ }
+
+
+
+
+ IntPtr
+
+
+ IntPtr
+
+
+ IntPtr
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Default.cs
new file mode 100644
index 00000000..15da4204
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Default.cs
@@ -0,0 +1,36 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public Vtbl* lpVtbl;
+
+ public int GetType(int objA, int objB)
+ {
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+ }
+
+ public new int GetType()
+ {
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int GetType(int obj)
+ {
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), obj);
+ }
+
+ public partial struct Vtbl
+ {
+ [NativeTypeName("int (int, int)")]
+ public new delegate* unmanaged[Thiscall] GetType;
+
+ [NativeTypeName("int ()")]
+ public delegate* unmanaged[Thiscall] GetType1;
+
+ [NativeTypeName("int (int)")]
+ public delegate* unmanaged[Thiscall] GetType2;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Default.xml
new file mode 100644
index 00000000..3ff74f5e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Default.xml
@@ -0,0 +1,48 @@
+
+
+
+
+
+ Vtbl*
+
+
+ int
+
+ int
+
+
+ int
+
+
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+
+
+
+ int
+
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ int
+
+
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), obj);
+
+
+
+
+ delegate* unmanaged[Thiscall]<MyStruct*, int, int, int>
+
+
+ delegate* unmanaged[Thiscall]<MyStruct*, int>
+
+
+ delegate* unmanaged[Thiscall]<MyStruct*, int, int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Latest.cs
new file mode 100644
index 00000000..15da4204
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Latest.cs
@@ -0,0 +1,36 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public Vtbl* lpVtbl;
+
+ public int GetType(int objA, int objB)
+ {
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+ }
+
+ public new int GetType()
+ {
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int GetType(int obj)
+ {
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), obj);
+ }
+
+ public partial struct Vtbl
+ {
+ [NativeTypeName("int (int, int)")]
+ public new delegate* unmanaged[Thiscall] GetType;
+
+ [NativeTypeName("int ()")]
+ public delegate* unmanaged[Thiscall] GetType1;
+
+ [NativeTypeName("int (int)")]
+ public delegate* unmanaged[Thiscall] GetType2;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Latest.xml
new file mode 100644
index 00000000..3ff74f5e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Latest.xml
@@ -0,0 +1,48 @@
+
+
+
+
+
+ Vtbl*
+
+
+ int
+
+ int
+
+
+ int
+
+
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+
+
+
+ int
+
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ int
+
+
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), obj);
+
+
+
+
+ delegate* unmanaged[Thiscall]<MyStruct*, int, int, int>
+
+
+ delegate* unmanaged[Thiscall]<MyStruct*, int>
+
+
+ delegate* unmanaged[Thiscall]<MyStruct*, int, int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Preview.cs
new file mode 100644
index 00000000..15da4204
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Preview.cs
@@ -0,0 +1,36 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public Vtbl* lpVtbl;
+
+ public int GetType(int objA, int objB)
+ {
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+ }
+
+ public new int GetType()
+ {
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int GetType(int obj)
+ {
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), obj);
+ }
+
+ public partial struct Vtbl
+ {
+ [NativeTypeName("int (int, int)")]
+ public new delegate* unmanaged[Thiscall] GetType;
+
+ [NativeTypeName("int ()")]
+ public delegate* unmanaged[Thiscall] GetType1;
+
+ [NativeTypeName("int (int)")]
+ public delegate* unmanaged[Thiscall] GetType2;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Preview.xml
new file mode 100644
index 00000000..3ff74f5e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.NewKeywordVirtualWithExplicitVtblTest.Windows.Preview.xml
@@ -0,0 +1,48 @@
+
+
+
+
+
+ Vtbl*
+
+
+ int
+
+ int
+
+
+ int
+
+
+ return lpVtbl->GetType((MyStruct*)Unsafe.AsPointer(ref this), objA, objB);
+
+
+
+ int
+
+ return lpVtbl->GetType1((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ int
+
+
+ return lpVtbl->GetType2((MyStruct*)Unsafe.AsPointer(ref this), obj);
+
+
+
+
+ delegate* unmanaged[Thiscall]<MyStruct*, int, int, int>
+
+
+ delegate* unmanaged[Thiscall]<MyStruct*, int>
+
+
+ delegate* unmanaged[Thiscall]<MyStruct*, int, int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Compatible.cs
new file mode 100644
index 00000000..f2da1d51
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Compatible.cs
@@ -0,0 +1,35 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public MyStruct(int value)
+ {
+ this.value = value;
+ }
+
+ public MyStruct Add(MyStruct rhs)
+ {
+ return new MyStruct(value + rhs.value);
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction1(MyStruct lhs, MyStruct rhs)
+ {
+ return lhs.Add(rhs);
+ }
+
+ public static MyStruct Subtract(MyStruct lhs, MyStruct rhs)
+ {
+ return new MyStruct(lhs.value - rhs.value);
+ }
+
+ public static MyStruct MyFunction2(MyStruct lhs, MyStruct rhs)
+ {
+ return Subtract(lhs, rhs);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Compatible.xml
new file mode 100644
index 00000000..f41d5272
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Compatible.xml
@@ -0,0 +1,59 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+
+ value
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+ return new MyStruct(value + rhs.value);
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return lhs.Add(rhs);
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return new MyStruct(lhs.value - rhs.value);
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return Subtract(lhs, rhs);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Default.cs
new file mode 100644
index 00000000..f2da1d51
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Default.cs
@@ -0,0 +1,35 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public MyStruct(int value)
+ {
+ this.value = value;
+ }
+
+ public MyStruct Add(MyStruct rhs)
+ {
+ return new MyStruct(value + rhs.value);
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction1(MyStruct lhs, MyStruct rhs)
+ {
+ return lhs.Add(rhs);
+ }
+
+ public static MyStruct Subtract(MyStruct lhs, MyStruct rhs)
+ {
+ return new MyStruct(lhs.value - rhs.value);
+ }
+
+ public static MyStruct MyFunction2(MyStruct lhs, MyStruct rhs)
+ {
+ return Subtract(lhs, rhs);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Default.xml
new file mode 100644
index 00000000..f41d5272
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Default.xml
@@ -0,0 +1,59 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+
+ value
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+ return new MyStruct(value + rhs.value);
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return lhs.Add(rhs);
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return new MyStruct(lhs.value - rhs.value);
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return Subtract(lhs, rhs);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Latest.cs
new file mode 100644
index 00000000..f2da1d51
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Latest.cs
@@ -0,0 +1,35 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public MyStruct(int value)
+ {
+ this.value = value;
+ }
+
+ public MyStruct Add(MyStruct rhs)
+ {
+ return new MyStruct(value + rhs.value);
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction1(MyStruct lhs, MyStruct rhs)
+ {
+ return lhs.Add(rhs);
+ }
+
+ public static MyStruct Subtract(MyStruct lhs, MyStruct rhs)
+ {
+ return new MyStruct(lhs.value - rhs.value);
+ }
+
+ public static MyStruct MyFunction2(MyStruct lhs, MyStruct rhs)
+ {
+ return Subtract(lhs, rhs);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Latest.xml
new file mode 100644
index 00000000..f41d5272
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Latest.xml
@@ -0,0 +1,59 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+
+ value
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+ return new MyStruct(value + rhs.value);
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return lhs.Add(rhs);
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return new MyStruct(lhs.value - rhs.value);
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return Subtract(lhs, rhs);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Preview.cs
new file mode 100644
index 00000000..f2da1d51
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Preview.cs
@@ -0,0 +1,35 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public MyStruct(int value)
+ {
+ this.value = value;
+ }
+
+ public MyStruct Add(MyStruct rhs)
+ {
+ return new MyStruct(value + rhs.value);
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction1(MyStruct lhs, MyStruct rhs)
+ {
+ return lhs.Add(rhs);
+ }
+
+ public static MyStruct Subtract(MyStruct lhs, MyStruct rhs)
+ {
+ return new MyStruct(lhs.value - rhs.value);
+ }
+
+ public static MyStruct MyFunction2(MyStruct lhs, MyStruct rhs)
+ {
+ return Subtract(lhs, rhs);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Preview.xml
new file mode 100644
index 00000000..f41d5272
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Unix.Preview.xml
@@ -0,0 +1,59 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+
+ value
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+ return new MyStruct(value + rhs.value);
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return lhs.Add(rhs);
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return new MyStruct(lhs.value - rhs.value);
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return Subtract(lhs, rhs);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Compatible.cs
new file mode 100644
index 00000000..f2da1d51
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Compatible.cs
@@ -0,0 +1,35 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public MyStruct(int value)
+ {
+ this.value = value;
+ }
+
+ public MyStruct Add(MyStruct rhs)
+ {
+ return new MyStruct(value + rhs.value);
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction1(MyStruct lhs, MyStruct rhs)
+ {
+ return lhs.Add(rhs);
+ }
+
+ public static MyStruct Subtract(MyStruct lhs, MyStruct rhs)
+ {
+ return new MyStruct(lhs.value - rhs.value);
+ }
+
+ public static MyStruct MyFunction2(MyStruct lhs, MyStruct rhs)
+ {
+ return Subtract(lhs, rhs);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Compatible.xml
new file mode 100644
index 00000000..f41d5272
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Compatible.xml
@@ -0,0 +1,59 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+
+ value
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+ return new MyStruct(value + rhs.value);
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return lhs.Add(rhs);
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return new MyStruct(lhs.value - rhs.value);
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return Subtract(lhs, rhs);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Default.cs
new file mode 100644
index 00000000..f2da1d51
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Default.cs
@@ -0,0 +1,35 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public MyStruct(int value)
+ {
+ this.value = value;
+ }
+
+ public MyStruct Add(MyStruct rhs)
+ {
+ return new MyStruct(value + rhs.value);
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction1(MyStruct lhs, MyStruct rhs)
+ {
+ return lhs.Add(rhs);
+ }
+
+ public static MyStruct Subtract(MyStruct lhs, MyStruct rhs)
+ {
+ return new MyStruct(lhs.value - rhs.value);
+ }
+
+ public static MyStruct MyFunction2(MyStruct lhs, MyStruct rhs)
+ {
+ return Subtract(lhs, rhs);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Default.xml
new file mode 100644
index 00000000..f41d5272
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Default.xml
@@ -0,0 +1,59 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+
+ value
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+ return new MyStruct(value + rhs.value);
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return lhs.Add(rhs);
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return new MyStruct(lhs.value - rhs.value);
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return Subtract(lhs, rhs);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Latest.cs
new file mode 100644
index 00000000..f2da1d51
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Latest.cs
@@ -0,0 +1,35 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public MyStruct(int value)
+ {
+ this.value = value;
+ }
+
+ public MyStruct Add(MyStruct rhs)
+ {
+ return new MyStruct(value + rhs.value);
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction1(MyStruct lhs, MyStruct rhs)
+ {
+ return lhs.Add(rhs);
+ }
+
+ public static MyStruct Subtract(MyStruct lhs, MyStruct rhs)
+ {
+ return new MyStruct(lhs.value - rhs.value);
+ }
+
+ public static MyStruct MyFunction2(MyStruct lhs, MyStruct rhs)
+ {
+ return Subtract(lhs, rhs);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Latest.xml
new file mode 100644
index 00000000..f41d5272
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Latest.xml
@@ -0,0 +1,59 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+
+ value
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+ return new MyStruct(value + rhs.value);
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return lhs.Add(rhs);
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return new MyStruct(lhs.value - rhs.value);
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return Subtract(lhs, rhs);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Preview.cs
new file mode 100644
index 00000000..f2da1d51
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Preview.cs
@@ -0,0 +1,35 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public MyStruct(int value)
+ {
+ this.value = value;
+ }
+
+ public MyStruct Add(MyStruct rhs)
+ {
+ return new MyStruct(value + rhs.value);
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction1(MyStruct lhs, MyStruct rhs)
+ {
+ return lhs.Add(rhs);
+ }
+
+ public static MyStruct Subtract(MyStruct lhs, MyStruct rhs)
+ {
+ return new MyStruct(lhs.value - rhs.value);
+ }
+
+ public static MyStruct MyFunction2(MyStruct lhs, MyStruct rhs)
+ {
+ return Subtract(lhs, rhs);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Preview.xml
new file mode 100644
index 00000000..f41d5272
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorCallTest.Windows.Preview.xml
@@ -0,0 +1,59 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+
+ value
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+ return new MyStruct(value + rhs.value);
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return lhs.Add(rhs);
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return new MyStruct(lhs.value - rhs.value);
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return Subtract(lhs, rhs);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Compatible.cs
new file mode 100644
index 00000000..dcdc3cbd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Compatible.cs
@@ -0,0 +1,25 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public MyStruct(int value)
+ {
+ this.value = value;
+ }
+
+ public MyStruct Add(MyStruct rhs)
+ {
+ return new MyStruct(value + rhs.value);
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct Subtract(MyStruct lhs, MyStruct rhs)
+ {
+ return new MyStruct(lhs.value - rhs.value);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Compatible.xml
new file mode 100644
index 00000000..1f20f49b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Compatible.xml
@@ -0,0 +1,39 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+
+ value
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+ return new MyStruct(value + rhs.value);
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return new MyStruct(lhs.value - rhs.value);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Default.cs
new file mode 100644
index 00000000..dcdc3cbd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Default.cs
@@ -0,0 +1,25 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public MyStruct(int value)
+ {
+ this.value = value;
+ }
+
+ public MyStruct Add(MyStruct rhs)
+ {
+ return new MyStruct(value + rhs.value);
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct Subtract(MyStruct lhs, MyStruct rhs)
+ {
+ return new MyStruct(lhs.value - rhs.value);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Default.xml
new file mode 100644
index 00000000..1f20f49b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Default.xml
@@ -0,0 +1,39 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+
+ value
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+ return new MyStruct(value + rhs.value);
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return new MyStruct(lhs.value - rhs.value);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Latest.cs
new file mode 100644
index 00000000..dcdc3cbd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Latest.cs
@@ -0,0 +1,25 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public MyStruct(int value)
+ {
+ this.value = value;
+ }
+
+ public MyStruct Add(MyStruct rhs)
+ {
+ return new MyStruct(value + rhs.value);
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct Subtract(MyStruct lhs, MyStruct rhs)
+ {
+ return new MyStruct(lhs.value - rhs.value);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Latest.xml
new file mode 100644
index 00000000..1f20f49b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Latest.xml
@@ -0,0 +1,39 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+
+ value
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+ return new MyStruct(value + rhs.value);
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return new MyStruct(lhs.value - rhs.value);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Preview.cs
new file mode 100644
index 00000000..dcdc3cbd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Preview.cs
@@ -0,0 +1,25 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public MyStruct(int value)
+ {
+ this.value = value;
+ }
+
+ public MyStruct Add(MyStruct rhs)
+ {
+ return new MyStruct(value + rhs.value);
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct Subtract(MyStruct lhs, MyStruct rhs)
+ {
+ return new MyStruct(lhs.value - rhs.value);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Preview.xml
new file mode 100644
index 00000000..1f20f49b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Unix.Preview.xml
@@ -0,0 +1,39 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+
+ value
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+ return new MyStruct(value + rhs.value);
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return new MyStruct(lhs.value - rhs.value);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Compatible.cs
new file mode 100644
index 00000000..dcdc3cbd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Compatible.cs
@@ -0,0 +1,25 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public MyStruct(int value)
+ {
+ this.value = value;
+ }
+
+ public MyStruct Add(MyStruct rhs)
+ {
+ return new MyStruct(value + rhs.value);
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct Subtract(MyStruct lhs, MyStruct rhs)
+ {
+ return new MyStruct(lhs.value - rhs.value);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Compatible.xml
new file mode 100644
index 00000000..1f20f49b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Compatible.xml
@@ -0,0 +1,39 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+
+ value
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+ return new MyStruct(value + rhs.value);
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return new MyStruct(lhs.value - rhs.value);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Default.cs
new file mode 100644
index 00000000..dcdc3cbd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Default.cs
@@ -0,0 +1,25 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public MyStruct(int value)
+ {
+ this.value = value;
+ }
+
+ public MyStruct Add(MyStruct rhs)
+ {
+ return new MyStruct(value + rhs.value);
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct Subtract(MyStruct lhs, MyStruct rhs)
+ {
+ return new MyStruct(lhs.value - rhs.value);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Default.xml
new file mode 100644
index 00000000..1f20f49b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Default.xml
@@ -0,0 +1,39 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+
+ value
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+ return new MyStruct(value + rhs.value);
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return new MyStruct(lhs.value - rhs.value);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Latest.cs
new file mode 100644
index 00000000..dcdc3cbd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Latest.cs
@@ -0,0 +1,25 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public MyStruct(int value)
+ {
+ this.value = value;
+ }
+
+ public MyStruct Add(MyStruct rhs)
+ {
+ return new MyStruct(value + rhs.value);
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct Subtract(MyStruct lhs, MyStruct rhs)
+ {
+ return new MyStruct(lhs.value - rhs.value);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Latest.xml
new file mode 100644
index 00000000..1f20f49b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Latest.xml
@@ -0,0 +1,39 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+
+ value
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+ return new MyStruct(value + rhs.value);
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return new MyStruct(lhs.value - rhs.value);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Preview.cs
new file mode 100644
index 00000000..dcdc3cbd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Preview.cs
@@ -0,0 +1,25 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public MyStruct(int value)
+ {
+ this.value = value;
+ }
+
+ public MyStruct Add(MyStruct rhs)
+ {
+ return new MyStruct(value + rhs.value);
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct Subtract(MyStruct lhs, MyStruct rhs)
+ {
+ return new MyStruct(lhs.value - rhs.value);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Preview.xml
new file mode 100644
index 00000000..1f20f49b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.OperatorTest.Windows.Preview.xml
@@ -0,0 +1,39 @@
+
+
+
+
+
+ int
+
+
+ void
+
+ int
+
+
+ value
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+ return new MyStruct(value + rhs.value);
+
+
+
+
+ MyStruct
+
+ MyStruct
+
+
+ MyStruct
+
+ return new MyStruct(lhs.value - rhs.value);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Compatible.cs
new file mode 100644
index 00000000..153b9444
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Compatible.cs
@@ -0,0 +1,20 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, EntryPoint = "_ZN8MyStruct12MyVoidMethodEv", ExactSpelling = true)]
+ public static extern void MyVoidMethod();
+
+ public static int MyInt32Method()
+ {
+ return 0;
+ }
+
+ public static void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Compatible.xml
new file mode 100644
index 00000000..5bd1174c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Compatible.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+ void
+
+
+ int
+ return 0;
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Default.cs
new file mode 100644
index 00000000..153b9444
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Default.cs
@@ -0,0 +1,20 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, EntryPoint = "_ZN8MyStruct12MyVoidMethodEv", ExactSpelling = true)]
+ public static extern void MyVoidMethod();
+
+ public static int MyInt32Method()
+ {
+ return 0;
+ }
+
+ public static void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Default.xml
new file mode 100644
index 00000000..5bd1174c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Default.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+ void
+
+
+ int
+ return 0;
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Latest.cs
new file mode 100644
index 00000000..153b9444
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Latest.cs
@@ -0,0 +1,20 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, EntryPoint = "_ZN8MyStruct12MyVoidMethodEv", ExactSpelling = true)]
+ public static extern void MyVoidMethod();
+
+ public static int MyInt32Method()
+ {
+ return 0;
+ }
+
+ public static void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Latest.xml
new file mode 100644
index 00000000..5bd1174c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Latest.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+ void
+
+
+ int
+ return 0;
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Preview.cs
new file mode 100644
index 00000000..153b9444
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Preview.cs
@@ -0,0 +1,20 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, EntryPoint = "_ZN8MyStruct12MyVoidMethodEv", ExactSpelling = true)]
+ public static extern void MyVoidMethod();
+
+ public static int MyInt32Method()
+ {
+ return 0;
+ }
+
+ public static void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Preview.xml
new file mode 100644
index 00000000..5bd1174c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Unix.Preview.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+ void
+
+
+ int
+ return 0;
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Compatible.cs
new file mode 100644
index 00000000..81ad1ea6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Compatible.cs
@@ -0,0 +1,20 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?MyVoidMethod@MyStruct@@SAXXZ", ExactSpelling = true)]
+ public static extern void MyVoidMethod();
+
+ public static int MyInt32Method()
+ {
+ return 0;
+ }
+
+ public static void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Compatible.xml
new file mode 100644
index 00000000..699c4410
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Compatible.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+ void
+
+
+ int
+ return 0;
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Default.cs
new file mode 100644
index 00000000..81ad1ea6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Default.cs
@@ -0,0 +1,20 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?MyVoidMethod@MyStruct@@SAXXZ", ExactSpelling = true)]
+ public static extern void MyVoidMethod();
+
+ public static int MyInt32Method()
+ {
+ return 0;
+ }
+
+ public static void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Default.xml
new file mode 100644
index 00000000..699c4410
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Default.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+ void
+
+
+ int
+ return 0;
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Latest.cs
new file mode 100644
index 00000000..81ad1ea6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Latest.cs
@@ -0,0 +1,20 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?MyVoidMethod@MyStruct@@SAXXZ", ExactSpelling = true)]
+ public static extern void MyVoidMethod();
+
+ public static int MyInt32Method()
+ {
+ return 0;
+ }
+
+ public static void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Latest.xml
new file mode 100644
index 00000000..699c4410
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Latest.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+ void
+
+
+ int
+ return 0;
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Preview.cs
new file mode 100644
index 00000000..81ad1ea6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Preview.cs
@@ -0,0 +1,20 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?MyVoidMethod@MyStruct@@SAXXZ", ExactSpelling = true)]
+ public static extern void MyVoidMethod();
+
+ public static int MyInt32Method()
+ {
+ return 0;
+ }
+
+ public static void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Preview.xml
new file mode 100644
index 00000000..699c4410
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.StaticTest.Windows.Preview.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+ void
+
+
+ int
+ return 0;
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Compatible.cs
new file mode 100644
index 00000000..4fc497af
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Compatible.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction()
+ {
+ return this.value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Compatible.xml
new file mode 100644
index 00000000..6cf6eb53
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return this.value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Default.cs
new file mode 100644
index 00000000..4fc497af
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Default.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction()
+ {
+ return this.value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Default.xml
new file mode 100644
index 00000000..6cf6eb53
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return this.value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Latest.cs
new file mode 100644
index 00000000..4fc497af
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Latest.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction()
+ {
+ return this.value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Latest.xml
new file mode 100644
index 00000000..6cf6eb53
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return this.value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Preview.cs
new file mode 100644
index 00000000..4fc497af
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Preview.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction()
+ {
+ return this.value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Preview.xml
new file mode 100644
index 00000000..6cf6eb53
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Unix.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return this.value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Compatible.cs
new file mode 100644
index 00000000..4fc497af
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Compatible.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction()
+ {
+ return this.value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Compatible.xml
new file mode 100644
index 00000000..6cf6eb53
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return this.value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Default.cs
new file mode 100644
index 00000000..4fc497af
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Default.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction()
+ {
+ return this.value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Default.xml
new file mode 100644
index 00000000..6cf6eb53
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return this.value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Latest.cs
new file mode 100644
index 00000000..4fc497af
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Latest.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction()
+ {
+ return this.value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Latest.xml
new file mode 100644
index 00000000..6cf6eb53
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return this.value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Preview.cs
new file mode 100644
index 00000000..4fc497af
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Preview.cs
@@ -0,0 +1,12 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+
+ public int MyFunction()
+ {
+ return this.value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Preview.xml
new file mode 100644
index 00000000..6cf6eb53
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.ThisTest.Windows.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+
+ int
+ return this.value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Compatible.cs
new file mode 100644
index 00000000..109086f5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Compatible.cs
@@ -0,0 +1,18 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Compatible.xml
new file mode 100644
index 00000000..339db33f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void*
+ return null;
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Default.cs
new file mode 100644
index 00000000..109086f5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Default.cs
@@ -0,0 +1,18 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Default.xml
new file mode 100644
index 00000000..339db33f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void*
+ return null;
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Latest.cs
new file mode 100644
index 00000000..109086f5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Latest.cs
@@ -0,0 +1,18 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Latest.xml
new file mode 100644
index 00000000..339db33f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void*
+ return null;
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Preview.cs
new file mode 100644
index 00000000..109086f5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Preview.cs
@@ -0,0 +1,18 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Preview.xml
new file mode 100644
index 00000000..339db33f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Unix.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void*
+ return null;
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Compatible.cs
new file mode 100644
index 00000000..109086f5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Compatible.cs
@@ -0,0 +1,18 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Compatible.xml
new file mode 100644
index 00000000..339db33f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void*
+ return null;
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Default.cs
new file mode 100644
index 00000000..109086f5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Default.cs
@@ -0,0 +1,18 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Default.xml
new file mode 100644
index 00000000..339db33f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void*
+ return null;
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Latest.cs
new file mode 100644
index 00000000..109086f5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Latest.cs
@@ -0,0 +1,18 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Latest.xml
new file mode 100644
index 00000000..339db33f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void*
+ return null;
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Preview.cs
new file mode 100644
index 00000000..109086f5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Preview.cs
@@ -0,0 +1,18 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void* MyVoidStarMethod()
+ {
+ return null;
+ }
+ }
+
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Preview.xml
new file mode 100644
index 00000000..339db33f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.UnsafeDoesNotImpactDllImportTest.Windows.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void*
+ return null;
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Compatible.cs
new file mode 100644
index 00000000..94b339ff
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Compatible.cs
@@ -0,0 +1,56 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate void _MyVoidMethod(MyStruct* pThis);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ [return: NativeTypeName("char")]
+ public delegate sbyte _MyInt8Method(MyStruct* pThis);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _MyInt32Method(MyStruct* pThis);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate void* _MyVoidStarMethod(MyStruct* pThis);
+
+ public void MyVoidMethod()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ Marshal.GetDelegateForFunctionPointer<_MyVoidMethod>((IntPtr)(lpVtbl[0]))(pThis);
+ }
+ }
+
+ [return: NativeTypeName("char")]
+ public sbyte MyInt8Method()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyInt8Method>((IntPtr)(lpVtbl[1]))(pThis);
+ }
+ }
+
+ public int MyInt32Method()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyInt32Method>((IntPtr)(lpVtbl[2]))(pThis);
+ }
+ }
+
+ public void* MyVoidStarMethod()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyVoidStarMethod>((IntPtr)(lpVtbl[3]))(pThis);
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Compatible.xml
new file mode 100644
index 00000000..76e9c244
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Compatible.xml
@@ -0,0 +1,70 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ MyStruct*
+
+
+
+ sbyte
+
+ MyStruct*
+
+
+
+ int
+
+ MyStruct*
+
+
+
+ void*
+
+ MyStruct*
+
+
+
+ void
+
+ fixed (MyStruct* pThis = &this)
+ {
+ Marshal.GetDelegateForFunctionPointer<_MyVoidMethod>((IntPtr)(lpVtbl[0]))(pThis);
+ }
+
+
+
+ sbyte
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyInt8Method>((IntPtr)(lpVtbl[1]))(pThis);
+ }
+
+
+
+ int
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyInt32Method>((IntPtr)(lpVtbl[2]))(pThis);
+ }
+
+
+
+ void*
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyVoidStarMethod>((IntPtr)(lpVtbl[3]))(pThis);
+ }
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Default.cs
new file mode 100644
index 00000000..aa77bd09
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Default.cs
@@ -0,0 +1,30 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ public void MyVoidMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [return: NativeTypeName("char")]
+ public sbyte MyInt8Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int MyInt32Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public void* MyVoidStarMethod()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Default.xml
new file mode 100644
index 00000000..5106be8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Default.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStruct*, void>)(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ sbyte
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int>)(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ void*
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, void*>)(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Latest.cs
new file mode 100644
index 00000000..aa77bd09
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Latest.cs
@@ -0,0 +1,30 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ public void MyVoidMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [return: NativeTypeName("char")]
+ public sbyte MyInt8Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int MyInt32Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public void* MyVoidStarMethod()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Latest.xml
new file mode 100644
index 00000000..5106be8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Latest.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStruct*, void>)(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ sbyte
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int>)(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ void*
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, void*>)(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Preview.cs
new file mode 100644
index 00000000..aa77bd09
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Preview.cs
@@ -0,0 +1,30 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ public void MyVoidMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [return: NativeTypeName("char")]
+ public sbyte MyInt8Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int MyInt32Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public void* MyVoidStarMethod()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Preview.xml
new file mode 100644
index 00000000..5106be8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Unix.Preview.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStruct*, void>)(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ sbyte
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int>)(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ void*
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, void*>)(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Compatible.cs
new file mode 100644
index 00000000..94b339ff
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Compatible.cs
@@ -0,0 +1,56 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate void _MyVoidMethod(MyStruct* pThis);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ [return: NativeTypeName("char")]
+ public delegate sbyte _MyInt8Method(MyStruct* pThis);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _MyInt32Method(MyStruct* pThis);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate void* _MyVoidStarMethod(MyStruct* pThis);
+
+ public void MyVoidMethod()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ Marshal.GetDelegateForFunctionPointer<_MyVoidMethod>((IntPtr)(lpVtbl[0]))(pThis);
+ }
+ }
+
+ [return: NativeTypeName("char")]
+ public sbyte MyInt8Method()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyInt8Method>((IntPtr)(lpVtbl[1]))(pThis);
+ }
+ }
+
+ public int MyInt32Method()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyInt32Method>((IntPtr)(lpVtbl[2]))(pThis);
+ }
+ }
+
+ public void* MyVoidStarMethod()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyVoidStarMethod>((IntPtr)(lpVtbl[3]))(pThis);
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Compatible.xml
new file mode 100644
index 00000000..76e9c244
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Compatible.xml
@@ -0,0 +1,70 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ MyStruct*
+
+
+
+ sbyte
+
+ MyStruct*
+
+
+
+ int
+
+ MyStruct*
+
+
+
+ void*
+
+ MyStruct*
+
+
+
+ void
+
+ fixed (MyStruct* pThis = &this)
+ {
+ Marshal.GetDelegateForFunctionPointer<_MyVoidMethod>((IntPtr)(lpVtbl[0]))(pThis);
+ }
+
+
+
+ sbyte
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyInt8Method>((IntPtr)(lpVtbl[1]))(pThis);
+ }
+
+
+
+ int
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyInt32Method>((IntPtr)(lpVtbl[2]))(pThis);
+ }
+
+
+
+ void*
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyVoidStarMethod>((IntPtr)(lpVtbl[3]))(pThis);
+ }
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Default.cs
new file mode 100644
index 00000000..aa77bd09
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Default.cs
@@ -0,0 +1,30 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ public void MyVoidMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [return: NativeTypeName("char")]
+ public sbyte MyInt8Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int MyInt32Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public void* MyVoidStarMethod()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Default.xml
new file mode 100644
index 00000000..5106be8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Default.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStruct*, void>)(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ sbyte
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int>)(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ void*
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, void*>)(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Latest.cs
new file mode 100644
index 00000000..aa77bd09
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Latest.cs
@@ -0,0 +1,30 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ public void MyVoidMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [return: NativeTypeName("char")]
+ public sbyte MyInt8Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int MyInt32Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public void* MyVoidStarMethod()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Latest.xml
new file mode 100644
index 00000000..5106be8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Latest.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStruct*, void>)(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ sbyte
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int>)(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ void*
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, void*>)(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Preview.cs
new file mode 100644
index 00000000..aa77bd09
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Preview.cs
@@ -0,0 +1,30 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ public void MyVoidMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [return: NativeTypeName("char")]
+ public sbyte MyInt8Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public int MyInt32Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ public void* MyVoidStarMethod()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Preview.xml
new file mode 100644
index 00000000..5106be8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualTest.Windows.Preview.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStruct*, void>)(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ sbyte
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int>)(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ void*
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, void*>)(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Compatible.cs
new file mode 100644
index 00000000..9d63edf1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Compatible.cs
@@ -0,0 +1,60 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate void _MyVoidMethod(MyStruct* pThis);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ [return: NativeTypeName("char")]
+ public delegate sbyte _MyInt8Method(MyStruct* pThis);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _MyInt32Method(MyStruct* pThis);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate void* _MyVoidStarMethod(MyStruct* pThis);
+
+ [VtblIndex(0)]
+ public void MyVoidMethod()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ Marshal.GetDelegateForFunctionPointer<_MyVoidMethod>((IntPtr)(lpVtbl[0]))(pThis);
+ }
+ }
+
+ [VtblIndex(1)]
+ [return: NativeTypeName("char")]
+ public sbyte MyInt8Method()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyInt8Method>((IntPtr)(lpVtbl[1]))(pThis);
+ }
+ }
+
+ [VtblIndex(2)]
+ public int MyInt32Method()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyInt32Method>((IntPtr)(lpVtbl[2]))(pThis);
+ }
+ }
+
+ [VtblIndex(3)]
+ public void* MyVoidStarMethod()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyVoidStarMethod>((IntPtr)(lpVtbl[3]))(pThis);
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Compatible.xml
new file mode 100644
index 00000000..7e8898ae
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Compatible.xml
@@ -0,0 +1,70 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ MyStruct*
+
+
+
+ sbyte
+
+ MyStruct*
+
+
+
+ int
+
+ MyStruct*
+
+
+
+ void*
+
+ MyStruct*
+
+
+
+ void
+
+ fixed (MyStruct* pThis = &this)
+ {
+ Marshal.GetDelegateForFunctionPointer<_MyVoidMethod>((IntPtr)(lpVtbl[0]))(pThis);
+ }
+
+
+
+ sbyte
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyInt8Method>((IntPtr)(lpVtbl[1]))(pThis);
+ }
+
+
+
+ int
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyInt32Method>((IntPtr)(lpVtbl[2]))(pThis);
+ }
+
+
+
+ void*
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyVoidStarMethod>((IntPtr)(lpVtbl[3]))(pThis);
+ }
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Default.cs
new file mode 100644
index 00000000..a89e49fc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Default.cs
@@ -0,0 +1,34 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ [VtblIndex(0)]
+ public void MyVoidMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [VtblIndex(1)]
+ [return: NativeTypeName("char")]
+ public sbyte MyInt8Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [VtblIndex(2)]
+ public int MyInt32Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [VtblIndex(3)]
+ public void* MyVoidStarMethod()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Default.xml
new file mode 100644
index 00000000..9c26bf98
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Default.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStruct*, void>)(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ sbyte
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int>)(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ void*
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, void*>)(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Latest.cs
new file mode 100644
index 00000000..a89e49fc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Latest.cs
@@ -0,0 +1,34 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ [VtblIndex(0)]
+ public void MyVoidMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [VtblIndex(1)]
+ [return: NativeTypeName("char")]
+ public sbyte MyInt8Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [VtblIndex(2)]
+ public int MyInt32Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [VtblIndex(3)]
+ public void* MyVoidStarMethod()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Latest.xml
new file mode 100644
index 00000000..9c26bf98
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Latest.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStruct*, void>)(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ sbyte
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int>)(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ void*
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, void*>)(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Preview.cs
new file mode 100644
index 00000000..a89e49fc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Preview.cs
@@ -0,0 +1,34 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ [VtblIndex(0)]
+ public void MyVoidMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [VtblIndex(1)]
+ [return: NativeTypeName("char")]
+ public sbyte MyInt8Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [VtblIndex(2)]
+ public int MyInt32Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [VtblIndex(3)]
+ public void* MyVoidStarMethod()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Preview.xml
new file mode 100644
index 00000000..9c26bf98
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Unix.Preview.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStruct*, void>)(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ sbyte
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int>)(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ void*
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, void*>)(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Compatible.cs
new file mode 100644
index 00000000..9d63edf1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Compatible.cs
@@ -0,0 +1,60 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate void _MyVoidMethod(MyStruct* pThis);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ [return: NativeTypeName("char")]
+ public delegate sbyte _MyInt8Method(MyStruct* pThis);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate int _MyInt32Method(MyStruct* pThis);
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate void* _MyVoidStarMethod(MyStruct* pThis);
+
+ [VtblIndex(0)]
+ public void MyVoidMethod()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ Marshal.GetDelegateForFunctionPointer<_MyVoidMethod>((IntPtr)(lpVtbl[0]))(pThis);
+ }
+ }
+
+ [VtblIndex(1)]
+ [return: NativeTypeName("char")]
+ public sbyte MyInt8Method()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyInt8Method>((IntPtr)(lpVtbl[1]))(pThis);
+ }
+ }
+
+ [VtblIndex(2)]
+ public int MyInt32Method()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyInt32Method>((IntPtr)(lpVtbl[2]))(pThis);
+ }
+ }
+
+ [VtblIndex(3)]
+ public void* MyVoidStarMethod()
+ {
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyVoidStarMethod>((IntPtr)(lpVtbl[3]))(pThis);
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Compatible.xml
new file mode 100644
index 00000000..7e8898ae
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Compatible.xml
@@ -0,0 +1,70 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ MyStruct*
+
+
+
+ sbyte
+
+ MyStruct*
+
+
+
+ int
+
+ MyStruct*
+
+
+
+ void*
+
+ MyStruct*
+
+
+
+ void
+
+ fixed (MyStruct* pThis = &this)
+ {
+ Marshal.GetDelegateForFunctionPointer<_MyVoidMethod>((IntPtr)(lpVtbl[0]))(pThis);
+ }
+
+
+
+ sbyte
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyInt8Method>((IntPtr)(lpVtbl[1]))(pThis);
+ }
+
+
+
+ int
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyInt32Method>((IntPtr)(lpVtbl[2]))(pThis);
+ }
+
+
+
+ void*
+
+ fixed (MyStruct* pThis = &this)
+ {
+ return Marshal.GetDelegateForFunctionPointer<_MyVoidStarMethod>((IntPtr)(lpVtbl[3]))(pThis);
+ }
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Default.cs
new file mode 100644
index 00000000..a89e49fc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Default.cs
@@ -0,0 +1,34 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ [VtblIndex(0)]
+ public void MyVoidMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [VtblIndex(1)]
+ [return: NativeTypeName("char")]
+ public sbyte MyInt8Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [VtblIndex(2)]
+ public int MyInt32Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [VtblIndex(3)]
+ public void* MyVoidStarMethod()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Default.xml
new file mode 100644
index 00000000..9c26bf98
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Default.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStruct*, void>)(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ sbyte
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int>)(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ void*
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, void*>)(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Latest.cs
new file mode 100644
index 00000000..a89e49fc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Latest.cs
@@ -0,0 +1,34 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ [VtblIndex(0)]
+ public void MyVoidMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [VtblIndex(1)]
+ [return: NativeTypeName("char")]
+ public sbyte MyInt8Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [VtblIndex(2)]
+ public int MyInt32Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [VtblIndex(3)]
+ public void* MyVoidStarMethod()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Latest.xml
new file mode 100644
index 00000000..9c26bf98
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Latest.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStruct*, void>)(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ sbyte
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int>)(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ void*
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, void*>)(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Preview.cs
new file mode 100644
index 00000000..a89e49fc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Preview.cs
@@ -0,0 +1,34 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ public void** lpVtbl;
+
+ [VtblIndex(0)]
+ public void MyVoidMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [VtblIndex(1)]
+ [return: NativeTypeName("char")]
+ public sbyte MyInt8Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [VtblIndex(2)]
+ public int MyInt32Method()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+
+ [VtblIndex(3)]
+ public void* MyVoidStarMethod()
+ {
+ return ((delegate* unmanaged[Thiscall])(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Preview.xml
new file mode 100644
index 00000000..9c26bf98
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/CXXMethodDeclarationTest.VirtualWithVtblIndexAttributeTest.Windows.Preview.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStruct*, void>)(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ sbyte
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ int
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, int>)(lpVtbl[2]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+ void*
+
+ return ((delegate* unmanaged[Thiscall]<MyStruct*, void*>)(lpVtbl[3]))((MyStruct*)Unsafe.AsPointer(ref this));
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Compatible.cs
new file mode 100644
index 00000000..bff18e4a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Compatible.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum0
+ {
+ MyEnum_Value0,
+ }
+
+ [Obsolete]
+ public enum MyEnum1
+ {
+ MyEnum_Value1,
+ }
+
+ [Obsolete("This is obsolete.")]
+ public enum MyEnum2
+ {
+ MyEnum_Value2,
+ }
+
+ public enum MyEnum3
+ {
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Compatible.xml
new file mode 100644
index 00000000..ed2eb06b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Compatible.xml
@@ -0,0 +1,31 @@
+
+
+
+
+ int
+
+ int
+
+
+
+ Obsolete
+ int
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+ int
+
+ int
+
+
+
+ int
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Default.cs
new file mode 100644
index 00000000..bff18e4a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Default.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum0
+ {
+ MyEnum_Value0,
+ }
+
+ [Obsolete]
+ public enum MyEnum1
+ {
+ MyEnum_Value1,
+ }
+
+ [Obsolete("This is obsolete.")]
+ public enum MyEnum2
+ {
+ MyEnum_Value2,
+ }
+
+ public enum MyEnum3
+ {
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Default.xml
new file mode 100644
index 00000000..ed2eb06b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Default.xml
@@ -0,0 +1,31 @@
+
+
+
+
+ int
+
+ int
+
+
+
+ Obsolete
+ int
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+ int
+
+ int
+
+
+
+ int
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Latest.cs
new file mode 100644
index 00000000..bff18e4a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Latest.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum0
+ {
+ MyEnum_Value0,
+ }
+
+ [Obsolete]
+ public enum MyEnum1
+ {
+ MyEnum_Value1,
+ }
+
+ [Obsolete("This is obsolete.")]
+ public enum MyEnum2
+ {
+ MyEnum_Value2,
+ }
+
+ public enum MyEnum3
+ {
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Latest.xml
new file mode 100644
index 00000000..ed2eb06b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Latest.xml
@@ -0,0 +1,31 @@
+
+
+
+
+ int
+
+ int
+
+
+
+ Obsolete
+ int
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+ int
+
+ int
+
+
+
+ int
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Preview.cs
new file mode 100644
index 00000000..bff18e4a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Preview.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum0
+ {
+ MyEnum_Value0,
+ }
+
+ [Obsolete]
+ public enum MyEnum1
+ {
+ MyEnum_Value1,
+ }
+
+ [Obsolete("This is obsolete.")]
+ public enum MyEnum2
+ {
+ MyEnum_Value2,
+ }
+
+ public enum MyEnum3
+ {
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Preview.xml
new file mode 100644
index 00000000..ed2eb06b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Unix.Preview.xml
@@ -0,0 +1,31 @@
+
+
+
+
+ int
+
+ int
+
+
+
+ Obsolete
+ int
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+ int
+
+ int
+
+
+
+ int
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Compatible.cs
new file mode 100644
index 00000000..bff18e4a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Compatible.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum0
+ {
+ MyEnum_Value0,
+ }
+
+ [Obsolete]
+ public enum MyEnum1
+ {
+ MyEnum_Value1,
+ }
+
+ [Obsolete("This is obsolete.")]
+ public enum MyEnum2
+ {
+ MyEnum_Value2,
+ }
+
+ public enum MyEnum3
+ {
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Compatible.xml
new file mode 100644
index 00000000..ed2eb06b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Compatible.xml
@@ -0,0 +1,31 @@
+
+
+
+
+ int
+
+ int
+
+
+
+ Obsolete
+ int
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+ int
+
+ int
+
+
+
+ int
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Default.cs
new file mode 100644
index 00000000..bff18e4a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Default.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum0
+ {
+ MyEnum_Value0,
+ }
+
+ [Obsolete]
+ public enum MyEnum1
+ {
+ MyEnum_Value1,
+ }
+
+ [Obsolete("This is obsolete.")]
+ public enum MyEnum2
+ {
+ MyEnum_Value2,
+ }
+
+ public enum MyEnum3
+ {
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Default.xml
new file mode 100644
index 00000000..ed2eb06b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Default.xml
@@ -0,0 +1,31 @@
+
+
+
+
+ int
+
+ int
+
+
+
+ Obsolete
+ int
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+ int
+
+ int
+
+
+
+ int
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Latest.cs
new file mode 100644
index 00000000..bff18e4a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Latest.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum0
+ {
+ MyEnum_Value0,
+ }
+
+ [Obsolete]
+ public enum MyEnum1
+ {
+ MyEnum_Value1,
+ }
+
+ [Obsolete("This is obsolete.")]
+ public enum MyEnum2
+ {
+ MyEnum_Value2,
+ }
+
+ public enum MyEnum3
+ {
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Latest.xml
new file mode 100644
index 00000000..ed2eb06b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Latest.xml
@@ -0,0 +1,31 @@
+
+
+
+
+ int
+
+ int
+
+
+
+ Obsolete
+ int
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+ int
+
+ int
+
+
+
+ int
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Preview.cs
new file mode 100644
index 00000000..bff18e4a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Preview.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum0
+ {
+ MyEnum_Value0,
+ }
+
+ [Obsolete]
+ public enum MyEnum1
+ {
+ MyEnum_Value1,
+ }
+
+ [Obsolete("This is obsolete.")]
+ public enum MyEnum2
+ {
+ MyEnum_Value2,
+ }
+
+ public enum MyEnum3
+ {
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Preview.xml
new file mode 100644
index 00000000..ed2eb06b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.EnumDecl.Windows.Preview.xml
@@ -0,0 +1,31 @@
+
+
+
+
+ int
+
+ int
+
+
+
+ Obsolete
+ int
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+ int
+
+ int
+
+
+
+ int
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Compatible.cs
new file mode 100644
index 00000000..c5e4704b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Compatible.cs
@@ -0,0 +1,25 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction0()
+ {
+ }
+
+ [Obsolete]
+ public static void MyFunction1()
+ {
+ }
+
+ [Obsolete("This is obsolete.")]
+ public static void MyFunction2()
+ {
+ }
+
+ public static void MyFunction3()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Compatible.xml
new file mode 100644
index 00000000..e4cf47e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Compatible.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ void
+
+
+
+ Obsolete
+ void
+
+
+
+ Obsolete("This is obsolete.")
+ void
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Default.cs
new file mode 100644
index 00000000..c5e4704b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Default.cs
@@ -0,0 +1,25 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction0()
+ {
+ }
+
+ [Obsolete]
+ public static void MyFunction1()
+ {
+ }
+
+ [Obsolete("This is obsolete.")]
+ public static void MyFunction2()
+ {
+ }
+
+ public static void MyFunction3()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Default.xml
new file mode 100644
index 00000000..e4cf47e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Default.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ void
+
+
+
+ Obsolete
+ void
+
+
+
+ Obsolete("This is obsolete.")
+ void
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Latest.cs
new file mode 100644
index 00000000..c5e4704b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Latest.cs
@@ -0,0 +1,25 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction0()
+ {
+ }
+
+ [Obsolete]
+ public static void MyFunction1()
+ {
+ }
+
+ [Obsolete("This is obsolete.")]
+ public static void MyFunction2()
+ {
+ }
+
+ public static void MyFunction3()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Latest.xml
new file mode 100644
index 00000000..e4cf47e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Latest.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ void
+
+
+
+ Obsolete
+ void
+
+
+
+ Obsolete("This is obsolete.")
+ void
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Preview.cs
new file mode 100644
index 00000000..c5e4704b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Preview.cs
@@ -0,0 +1,25 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction0()
+ {
+ }
+
+ [Obsolete]
+ public static void MyFunction1()
+ {
+ }
+
+ [Obsolete("This is obsolete.")]
+ public static void MyFunction2()
+ {
+ }
+
+ public static void MyFunction3()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Preview.xml
new file mode 100644
index 00000000..e4cf47e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Unix.Preview.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ void
+
+
+
+ Obsolete
+ void
+
+
+
+ Obsolete("This is obsolete.")
+ void
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Compatible.cs
new file mode 100644
index 00000000..c5e4704b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Compatible.cs
@@ -0,0 +1,25 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction0()
+ {
+ }
+
+ [Obsolete]
+ public static void MyFunction1()
+ {
+ }
+
+ [Obsolete("This is obsolete.")]
+ public static void MyFunction2()
+ {
+ }
+
+ public static void MyFunction3()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Compatible.xml
new file mode 100644
index 00000000..e4cf47e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Compatible.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ void
+
+
+
+ Obsolete
+ void
+
+
+
+ Obsolete("This is obsolete.")
+ void
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Default.cs
new file mode 100644
index 00000000..c5e4704b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Default.cs
@@ -0,0 +1,25 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction0()
+ {
+ }
+
+ [Obsolete]
+ public static void MyFunction1()
+ {
+ }
+
+ [Obsolete("This is obsolete.")]
+ public static void MyFunction2()
+ {
+ }
+
+ public static void MyFunction3()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Default.xml
new file mode 100644
index 00000000..e4cf47e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Default.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ void
+
+
+
+ Obsolete
+ void
+
+
+
+ Obsolete("This is obsolete.")
+ void
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Latest.cs
new file mode 100644
index 00000000..c5e4704b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Latest.cs
@@ -0,0 +1,25 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction0()
+ {
+ }
+
+ [Obsolete]
+ public static void MyFunction1()
+ {
+ }
+
+ [Obsolete("This is obsolete.")]
+ public static void MyFunction2()
+ {
+ }
+
+ public static void MyFunction3()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Latest.xml
new file mode 100644
index 00000000..e4cf47e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Latest.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ void
+
+
+
+ Obsolete
+ void
+
+
+
+ Obsolete("This is obsolete.")
+ void
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Preview.cs
new file mode 100644
index 00000000..c5e4704b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Preview.cs
@@ -0,0 +1,25 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction0()
+ {
+ }
+
+ [Obsolete]
+ public static void MyFunction1()
+ {
+ }
+
+ [Obsolete("This is obsolete.")]
+ public static void MyFunction2()
+ {
+ }
+
+ public static void MyFunction3()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Preview.xml
new file mode 100644
index 00000000..e4cf47e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDecl.Windows.Preview.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ void
+
+
+
+ Obsolete
+ void
+
+
+
+ Obsolete("This is obsolete.")
+ void
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Compatible.cs
new file mode 100644
index 00000000..896dacec
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Compatible.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction0();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [Obsolete]
+ public static extern void MyFunction1();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [Obsolete("This is obsolete.")]
+ public static extern void MyFunction2();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction3();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Compatible.xml
new file mode 100644
index 00000000..578c0cc6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Compatible.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+
+ Obsolete
+ void
+
+
+ Obsolete("This is obsolete.")
+ void
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Default.cs
new file mode 100644
index 00000000..896dacec
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Default.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction0();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [Obsolete]
+ public static extern void MyFunction1();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [Obsolete("This is obsolete.")]
+ public static extern void MyFunction2();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction3();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Default.xml
new file mode 100644
index 00000000..578c0cc6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Default.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+
+ Obsolete
+ void
+
+
+ Obsolete("This is obsolete.")
+ void
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Latest.cs
new file mode 100644
index 00000000..896dacec
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Latest.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction0();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [Obsolete]
+ public static extern void MyFunction1();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [Obsolete("This is obsolete.")]
+ public static extern void MyFunction2();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction3();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Latest.xml
new file mode 100644
index 00000000..578c0cc6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Latest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+
+ Obsolete
+ void
+
+
+ Obsolete("This is obsolete.")
+ void
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Preview.cs
new file mode 100644
index 00000000..896dacec
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Preview.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction0();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [Obsolete]
+ public static extern void MyFunction1();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [Obsolete("This is obsolete.")]
+ public static extern void MyFunction2();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction3();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Preview.xml
new file mode 100644
index 00000000..578c0cc6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Unix.Preview.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+
+ Obsolete
+ void
+
+
+ Obsolete("This is obsolete.")
+ void
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Compatible.cs
new file mode 100644
index 00000000..896dacec
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Compatible.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction0();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [Obsolete]
+ public static extern void MyFunction1();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [Obsolete("This is obsolete.")]
+ public static extern void MyFunction2();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction3();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Compatible.xml
new file mode 100644
index 00000000..578c0cc6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Compatible.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+
+ Obsolete
+ void
+
+
+ Obsolete("This is obsolete.")
+ void
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Default.cs
new file mode 100644
index 00000000..896dacec
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Default.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction0();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [Obsolete]
+ public static extern void MyFunction1();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [Obsolete("This is obsolete.")]
+ public static extern void MyFunction2();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction3();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Default.xml
new file mode 100644
index 00000000..578c0cc6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Default.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+
+ Obsolete
+ void
+
+
+ Obsolete("This is obsolete.")
+ void
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Latest.cs
new file mode 100644
index 00000000..896dacec
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Latest.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction0();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [Obsolete]
+ public static extern void MyFunction1();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [Obsolete("This is obsolete.")]
+ public static extern void MyFunction2();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction3();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Latest.xml
new file mode 100644
index 00000000..578c0cc6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Latest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+
+ Obsolete
+ void
+
+
+ Obsolete("This is obsolete.")
+ void
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Preview.cs
new file mode 100644
index 00000000..896dacec
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Preview.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction0();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [Obsolete]
+ public static extern void MyFunction1();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [Obsolete("This is obsolete.")]
+ public static extern void MyFunction2();
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction3();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Preview.xml
new file mode 100644
index 00000000..578c0cc6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncDllImport.Windows.Preview.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+
+ Obsolete
+ void
+
+
+ Obsolete("This is obsolete.")
+ void
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Compatible.cs
new file mode 100644
index 00000000..00b40b30
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Compatible.cs
@@ -0,0 +1,45 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ public delegate void Callback0();
+
+ [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ [Obsolete]
+ public delegate void Callback1();
+
+ [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ [Obsolete("This is obsolete.")]
+ public delegate void Callback2();
+
+ [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ public delegate void Callback3();
+
+ public partial struct MyStruct0
+ {
+ [NativeTypeName("Callback0")]
+ public IntPtr _callback;
+ }
+
+ public partial struct MyStruct1
+ {
+ [NativeTypeName("Callback1")]
+ [Obsolete]
+ public IntPtr _callback;
+ }
+
+ public partial struct MyStruct2
+ {
+ [NativeTypeName("Callback2")]
+ [Obsolete("This is obsolete.")]
+ public IntPtr _callback;
+ }
+
+ public partial struct MyStruct3
+ {
+ [NativeTypeName("Callback3")]
+ public IntPtr _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Compatible.xml
new file mode 100644
index 00000000..c3355605
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Compatible.xml
@@ -0,0 +1,41 @@
+
+
+
+
+ void
+
+
+ Obsolete
+ void
+
+
+ Obsolete("This is obsolete.")
+ void
+
+
+ void
+
+
+
+ IntPtr
+
+
+
+
+ Obsolete
+ IntPtr
+
+
+
+
+ Obsolete("This is obsolete.")
+ IntPtr
+
+
+
+
+ IntPtr
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Default.cs
new file mode 100644
index 00000000..75bb08ee
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Default.cs
@@ -0,0 +1,30 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct0
+ {
+ [NativeTypeName("Callback0")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+
+ public unsafe partial struct MyStruct1
+ {
+ [NativeTypeName("Callback1")]
+ [Obsolete]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+
+ public unsafe partial struct MyStruct2
+ {
+ [NativeTypeName("Callback2")]
+ [Obsolete("This is obsolete.")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+
+ public unsafe partial struct MyStruct3
+ {
+ [NativeTypeName("Callback3")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Default.xml
new file mode 100644
index 00000000..a3961046
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Default.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+ Obsolete
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+ Obsolete("This is obsolete.")
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Latest.cs
new file mode 100644
index 00000000..75bb08ee
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Latest.cs
@@ -0,0 +1,30 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct0
+ {
+ [NativeTypeName("Callback0")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+
+ public unsafe partial struct MyStruct1
+ {
+ [NativeTypeName("Callback1")]
+ [Obsolete]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+
+ public unsafe partial struct MyStruct2
+ {
+ [NativeTypeName("Callback2")]
+ [Obsolete("This is obsolete.")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+
+ public unsafe partial struct MyStruct3
+ {
+ [NativeTypeName("Callback3")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Latest.xml
new file mode 100644
index 00000000..a3961046
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Latest.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+ Obsolete
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+ Obsolete("This is obsolete.")
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Preview.cs
new file mode 100644
index 00000000..75bb08ee
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Preview.cs
@@ -0,0 +1,30 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct0
+ {
+ [NativeTypeName("Callback0")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+
+ public unsafe partial struct MyStruct1
+ {
+ [NativeTypeName("Callback1")]
+ [Obsolete]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+
+ public unsafe partial struct MyStruct2
+ {
+ [NativeTypeName("Callback2")]
+ [Obsolete("This is obsolete.")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+
+ public unsafe partial struct MyStruct3
+ {
+ [NativeTypeName("Callback3")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Preview.xml
new file mode 100644
index 00000000..a3961046
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Unix.Preview.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+ Obsolete
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+ Obsolete("This is obsolete.")
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Compatible.cs
new file mode 100644
index 00000000..00b40b30
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Compatible.cs
@@ -0,0 +1,45 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ public delegate void Callback0();
+
+ [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ [Obsolete]
+ public delegate void Callback1();
+
+ [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ [Obsolete("This is obsolete.")]
+ public delegate void Callback2();
+
+ [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ public delegate void Callback3();
+
+ public partial struct MyStruct0
+ {
+ [NativeTypeName("Callback0")]
+ public IntPtr _callback;
+ }
+
+ public partial struct MyStruct1
+ {
+ [NativeTypeName("Callback1")]
+ [Obsolete]
+ public IntPtr _callback;
+ }
+
+ public partial struct MyStruct2
+ {
+ [NativeTypeName("Callback2")]
+ [Obsolete("This is obsolete.")]
+ public IntPtr _callback;
+ }
+
+ public partial struct MyStruct3
+ {
+ [NativeTypeName("Callback3")]
+ public IntPtr _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Compatible.xml
new file mode 100644
index 00000000..c3355605
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Compatible.xml
@@ -0,0 +1,41 @@
+
+
+
+
+ void
+
+
+ Obsolete
+ void
+
+
+ Obsolete("This is obsolete.")
+ void
+
+
+ void
+
+
+
+ IntPtr
+
+
+
+
+ Obsolete
+ IntPtr
+
+
+
+
+ Obsolete("This is obsolete.")
+ IntPtr
+
+
+
+
+ IntPtr
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Default.cs
new file mode 100644
index 00000000..75bb08ee
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Default.cs
@@ -0,0 +1,30 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct0
+ {
+ [NativeTypeName("Callback0")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+
+ public unsafe partial struct MyStruct1
+ {
+ [NativeTypeName("Callback1")]
+ [Obsolete]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+
+ public unsafe partial struct MyStruct2
+ {
+ [NativeTypeName("Callback2")]
+ [Obsolete("This is obsolete.")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+
+ public unsafe partial struct MyStruct3
+ {
+ [NativeTypeName("Callback3")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Default.xml
new file mode 100644
index 00000000..a3961046
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Default.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+ Obsolete
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+ Obsolete("This is obsolete.")
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Latest.cs
new file mode 100644
index 00000000..75bb08ee
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Latest.cs
@@ -0,0 +1,30 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct0
+ {
+ [NativeTypeName("Callback0")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+
+ public unsafe partial struct MyStruct1
+ {
+ [NativeTypeName("Callback1")]
+ [Obsolete]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+
+ public unsafe partial struct MyStruct2
+ {
+ [NativeTypeName("Callback2")]
+ [Obsolete("This is obsolete.")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+
+ public unsafe partial struct MyStruct3
+ {
+ [NativeTypeName("Callback3")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Latest.xml
new file mode 100644
index 00000000..a3961046
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Latest.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+ Obsolete
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+ Obsolete("This is obsolete.")
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Preview.cs
new file mode 100644
index 00000000..75bb08ee
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Preview.cs
@@ -0,0 +1,30 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct0
+ {
+ [NativeTypeName("Callback0")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+
+ public unsafe partial struct MyStruct1
+ {
+ [NativeTypeName("Callback1")]
+ [Obsolete]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+
+ public unsafe partial struct MyStruct2
+ {
+ [NativeTypeName("Callback2")]
+ [Obsolete("This is obsolete.")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+
+ public unsafe partial struct MyStruct3
+ {
+ [NativeTypeName("Callback3")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Preview.xml
new file mode 100644
index 00000000..a3961046
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.FuncPtrDecl.Windows.Preview.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+ Obsolete
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+ Obsolete("This is obsolete.")
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Compatible.cs
new file mode 100644
index 00000000..d98eec88
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Compatible.cs
@@ -0,0 +1,29 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int MyFunction0()
+ {
+ return 0;
+ }
+
+ [Obsolete]
+ public int MyFunction1()
+ {
+ return 0;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public int MyFunction2()
+ {
+ return 0;
+ }
+
+ public int MyFunction3()
+ {
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Compatible.xml
new file mode 100644
index 00000000..31012923
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Compatible.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ int
+ return 0;
+
+
+ Obsolete
+ int
+ return 0;
+
+
+ Obsolete("This is obsolete.")
+ int
+ return 0;
+
+
+ int
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Default.cs
new file mode 100644
index 00000000..d98eec88
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Default.cs
@@ -0,0 +1,29 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int MyFunction0()
+ {
+ return 0;
+ }
+
+ [Obsolete]
+ public int MyFunction1()
+ {
+ return 0;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public int MyFunction2()
+ {
+ return 0;
+ }
+
+ public int MyFunction3()
+ {
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Default.xml
new file mode 100644
index 00000000..31012923
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Default.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ int
+ return 0;
+
+
+ Obsolete
+ int
+ return 0;
+
+
+ Obsolete("This is obsolete.")
+ int
+ return 0;
+
+
+ int
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Latest.cs
new file mode 100644
index 00000000..d98eec88
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Latest.cs
@@ -0,0 +1,29 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int MyFunction0()
+ {
+ return 0;
+ }
+
+ [Obsolete]
+ public int MyFunction1()
+ {
+ return 0;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public int MyFunction2()
+ {
+ return 0;
+ }
+
+ public int MyFunction3()
+ {
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Latest.xml
new file mode 100644
index 00000000..31012923
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Latest.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ int
+ return 0;
+
+
+ Obsolete
+ int
+ return 0;
+
+
+ Obsolete("This is obsolete.")
+ int
+ return 0;
+
+
+ int
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Preview.cs
new file mode 100644
index 00000000..d98eec88
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Preview.cs
@@ -0,0 +1,29 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int MyFunction0()
+ {
+ return 0;
+ }
+
+ [Obsolete]
+ public int MyFunction1()
+ {
+ return 0;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public int MyFunction2()
+ {
+ return 0;
+ }
+
+ public int MyFunction3()
+ {
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Preview.xml
new file mode 100644
index 00000000..31012923
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Unix.Preview.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ int
+ return 0;
+
+
+ Obsolete
+ int
+ return 0;
+
+
+ Obsolete("This is obsolete.")
+ int
+ return 0;
+
+
+ int
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Compatible.cs
new file mode 100644
index 00000000..d98eec88
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Compatible.cs
@@ -0,0 +1,29 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int MyFunction0()
+ {
+ return 0;
+ }
+
+ [Obsolete]
+ public int MyFunction1()
+ {
+ return 0;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public int MyFunction2()
+ {
+ return 0;
+ }
+
+ public int MyFunction3()
+ {
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Compatible.xml
new file mode 100644
index 00000000..31012923
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Compatible.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ int
+ return 0;
+
+
+ Obsolete
+ int
+ return 0;
+
+
+ Obsolete("This is obsolete.")
+ int
+ return 0;
+
+
+ int
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Default.cs
new file mode 100644
index 00000000..d98eec88
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Default.cs
@@ -0,0 +1,29 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int MyFunction0()
+ {
+ return 0;
+ }
+
+ [Obsolete]
+ public int MyFunction1()
+ {
+ return 0;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public int MyFunction2()
+ {
+ return 0;
+ }
+
+ public int MyFunction3()
+ {
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Default.xml
new file mode 100644
index 00000000..31012923
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Default.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ int
+ return 0;
+
+
+ Obsolete
+ int
+ return 0;
+
+
+ Obsolete("This is obsolete.")
+ int
+ return 0;
+
+
+ int
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Latest.cs
new file mode 100644
index 00000000..d98eec88
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Latest.cs
@@ -0,0 +1,29 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int MyFunction0()
+ {
+ return 0;
+ }
+
+ [Obsolete]
+ public int MyFunction1()
+ {
+ return 0;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public int MyFunction2()
+ {
+ return 0;
+ }
+
+ public int MyFunction3()
+ {
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Latest.xml
new file mode 100644
index 00000000..31012923
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Latest.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ int
+ return 0;
+
+
+ Obsolete
+ int
+ return 0;
+
+
+ Obsolete("This is obsolete.")
+ int
+ return 0;
+
+
+ int
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Preview.cs
new file mode 100644
index 00000000..d98eec88
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Preview.cs
@@ -0,0 +1,29 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int MyFunction0()
+ {
+ return 0;
+ }
+
+ [Obsolete]
+ public int MyFunction1()
+ {
+ return 0;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public int MyFunction2()
+ {
+ return 0;
+ }
+
+ public int MyFunction3()
+ {
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Preview.xml
new file mode 100644
index 00000000..31012923
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.InstanceFunc.Windows.Preview.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ int
+ return 0;
+
+
+ Obsolete
+ int
+ return 0;
+
+
+ Obsolete("This is obsolete.")
+ int
+ return 0;
+
+
+ int
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Compatible.cs
new file mode 100644
index 00000000..6da00c2a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Compatible.cs
@@ -0,0 +1,14 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ [Obsolete]
+ MyEnum_Value1,
+ [Obsolete("This is obsolete.")]
+ MyEnum_Value2,
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Compatible.xml
new file mode 100644
index 00000000..f2a7a5db
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Compatible.xml
@@ -0,0 +1,22 @@
+
+
+
+
+ int
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Default.cs
new file mode 100644
index 00000000..6da00c2a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Default.cs
@@ -0,0 +1,14 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ [Obsolete]
+ MyEnum_Value1,
+ [Obsolete("This is obsolete.")]
+ MyEnum_Value2,
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Default.xml
new file mode 100644
index 00000000..f2a7a5db
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Default.xml
@@ -0,0 +1,22 @@
+
+
+
+
+ int
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Latest.cs
new file mode 100644
index 00000000..6da00c2a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Latest.cs
@@ -0,0 +1,14 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ [Obsolete]
+ MyEnum_Value1,
+ [Obsolete("This is obsolete.")]
+ MyEnum_Value2,
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Latest.xml
new file mode 100644
index 00000000..f2a7a5db
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Latest.xml
@@ -0,0 +1,22 @@
+
+
+
+
+ int
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Preview.cs
new file mode 100644
index 00000000..6da00c2a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Preview.cs
@@ -0,0 +1,14 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ [Obsolete]
+ MyEnum_Value1,
+ [Obsolete("This is obsolete.")]
+ MyEnum_Value2,
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Preview.xml
new file mode 100644
index 00000000..f2a7a5db
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Unix.Preview.xml
@@ -0,0 +1,22 @@
+
+
+
+
+ int
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Compatible.cs
new file mode 100644
index 00000000..6da00c2a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Compatible.cs
@@ -0,0 +1,14 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ [Obsolete]
+ MyEnum_Value1,
+ [Obsolete("This is obsolete.")]
+ MyEnum_Value2,
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Compatible.xml
new file mode 100644
index 00000000..f2a7a5db
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Compatible.xml
@@ -0,0 +1,22 @@
+
+
+
+
+ int
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Default.cs
new file mode 100644
index 00000000..6da00c2a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Default.cs
@@ -0,0 +1,14 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ [Obsolete]
+ MyEnum_Value1,
+ [Obsolete("This is obsolete.")]
+ MyEnum_Value2,
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Default.xml
new file mode 100644
index 00000000..f2a7a5db
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Default.xml
@@ -0,0 +1,22 @@
+
+
+
+
+ int
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Latest.cs
new file mode 100644
index 00000000..6da00c2a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Latest.cs
@@ -0,0 +1,14 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ [Obsolete]
+ MyEnum_Value1,
+ [Obsolete("This is obsolete.")]
+ MyEnum_Value2,
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Latest.xml
new file mode 100644
index 00000000..f2a7a5db
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Latest.xml
@@ -0,0 +1,22 @@
+
+
+
+
+ int
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Preview.cs
new file mode 100644
index 00000000..6da00c2a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Preview.cs
@@ -0,0 +1,14 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ [Obsolete]
+ MyEnum_Value1,
+ [Obsolete("This is obsolete.")]
+ MyEnum_Value2,
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Preview.xml
new file mode 100644
index 00000000..f2a7a5db
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleEnumMembers.Windows.Preview.xml
@@ -0,0 +1,22 @@
+
+
+
+
+ int
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Compatible.cs
new file mode 100644
index 00000000..405acaa7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Compatible.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int r;
+
+ [Obsolete]
+ public int g;
+
+ [Obsolete("This is obsolete.")]
+ public int b;
+
+ public int a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Compatible.xml
new file mode 100644
index 00000000..62451fd1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Compatible.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Default.cs
new file mode 100644
index 00000000..405acaa7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Default.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int r;
+
+ [Obsolete]
+ public int g;
+
+ [Obsolete("This is obsolete.")]
+ public int b;
+
+ public int a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Default.xml
new file mode 100644
index 00000000..62451fd1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Default.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Latest.cs
new file mode 100644
index 00000000..405acaa7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Latest.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int r;
+
+ [Obsolete]
+ public int g;
+
+ [Obsolete("This is obsolete.")]
+ public int b;
+
+ public int a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Latest.xml
new file mode 100644
index 00000000..62451fd1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Latest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Preview.cs
new file mode 100644
index 00000000..405acaa7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Preview.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int r;
+
+ [Obsolete]
+ public int g;
+
+ [Obsolete("This is obsolete.")]
+ public int b;
+
+ public int a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Preview.xml
new file mode 100644
index 00000000..62451fd1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Unix.Preview.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Compatible.cs
new file mode 100644
index 00000000..405acaa7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Compatible.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int r;
+
+ [Obsolete]
+ public int g;
+
+ [Obsolete("This is obsolete.")]
+ public int b;
+
+ public int a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Compatible.xml
new file mode 100644
index 00000000..62451fd1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Compatible.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Default.cs
new file mode 100644
index 00000000..405acaa7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Default.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int r;
+
+ [Obsolete]
+ public int g;
+
+ [Obsolete("This is obsolete.")]
+ public int b;
+
+ public int a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Default.xml
new file mode 100644
index 00000000..62451fd1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Default.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Latest.cs
new file mode 100644
index 00000000..405acaa7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Latest.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int r;
+
+ [Obsolete]
+ public int g;
+
+ [Obsolete("This is obsolete.")]
+ public int b;
+
+ public int a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Latest.xml
new file mode 100644
index 00000000..62451fd1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Latest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Preview.cs
new file mode 100644
index 00000000..405acaa7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Preview.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int r;
+
+ [Obsolete]
+ public int g;
+
+ [Obsolete("This is obsolete.")]
+ public int b;
+
+ public int a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Preview.xml
new file mode 100644
index 00000000..62451fd1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleStructMembers.int.Windows.Preview.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Compatible.cs
new file mode 100644
index 00000000..405acaa7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Compatible.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int r;
+
+ [Obsolete]
+ public int g;
+
+ [Obsolete("This is obsolete.")]
+ public int b;
+
+ public int a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Compatible.xml
new file mode 100644
index 00000000..62451fd1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Compatible.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Default.cs
new file mode 100644
index 00000000..405acaa7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Default.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int r;
+
+ [Obsolete]
+ public int g;
+
+ [Obsolete("This is obsolete.")]
+ public int b;
+
+ public int a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Default.xml
new file mode 100644
index 00000000..62451fd1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Default.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Latest.cs
new file mode 100644
index 00000000..405acaa7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Latest.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int r;
+
+ [Obsolete]
+ public int g;
+
+ [Obsolete("This is obsolete.")]
+ public int b;
+
+ public int a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Latest.xml
new file mode 100644
index 00000000..62451fd1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Latest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Preview.cs
new file mode 100644
index 00000000..405acaa7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Preview.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int r;
+
+ [Obsolete]
+ public int g;
+
+ [Obsolete("This is obsolete.")]
+ public int b;
+
+ public int a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Preview.xml
new file mode 100644
index 00000000..62451fd1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Unix.Preview.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Compatible.cs
new file mode 100644
index 00000000..405acaa7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Compatible.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int r;
+
+ [Obsolete]
+ public int g;
+
+ [Obsolete("This is obsolete.")]
+ public int b;
+
+ public int a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Compatible.xml
new file mode 100644
index 00000000..62451fd1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Compatible.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Default.cs
new file mode 100644
index 00000000..405acaa7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Default.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int r;
+
+ [Obsolete]
+ public int g;
+
+ [Obsolete("This is obsolete.")]
+ public int b;
+
+ public int a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Default.xml
new file mode 100644
index 00000000..62451fd1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Default.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Latest.cs
new file mode 100644
index 00000000..405acaa7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Latest.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int r;
+
+ [Obsolete]
+ public int g;
+
+ [Obsolete("This is obsolete.")]
+ public int b;
+
+ public int a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Latest.xml
new file mode 100644
index 00000000..62451fd1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Latest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Preview.cs
new file mode 100644
index 00000000..405acaa7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Preview.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int r;
+
+ [Obsolete]
+ public int g;
+
+ [Obsolete("This is obsolete.")]
+ public int b;
+
+ public int a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Preview.xml
new file mode 100644
index 00000000..62451fd1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleTypedefStructMembers.int.Windows.Preview.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+
+ Obsolete
+ int
+
+
+ Obsolete("This is obsolete.")
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Compatible.cs
new file mode 100644
index 00000000..34fffe69
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Compatible.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyVariable0 = 0;
+
+ [Obsolete]
+ public static int MyVariable1 = 0;
+
+ [Obsolete("This is obsolete.")]
+ public static int MyVariable2 = 0;
+
+ public static int MyVariable3 = 0;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Compatible.xml
new file mode 100644
index 00000000..f830a1f0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Compatible.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+ int
+
+ 0
+
+
+
+ Obsolete
+ int
+
+ 0
+
+
+
+ Obsolete("This is obsolete.")
+ int
+
+ 0
+
+
+
+ int
+
+ 0
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Default.cs
new file mode 100644
index 00000000..34fffe69
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Default.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyVariable0 = 0;
+
+ [Obsolete]
+ public static int MyVariable1 = 0;
+
+ [Obsolete("This is obsolete.")]
+ public static int MyVariable2 = 0;
+
+ public static int MyVariable3 = 0;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Default.xml
new file mode 100644
index 00000000..f830a1f0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Default.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+ int
+
+ 0
+
+
+
+ Obsolete
+ int
+
+ 0
+
+
+
+ Obsolete("This is obsolete.")
+ int
+
+ 0
+
+
+
+ int
+
+ 0
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Latest.cs
new file mode 100644
index 00000000..34fffe69
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Latest.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyVariable0 = 0;
+
+ [Obsolete]
+ public static int MyVariable1 = 0;
+
+ [Obsolete("This is obsolete.")]
+ public static int MyVariable2 = 0;
+
+ public static int MyVariable3 = 0;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Latest.xml
new file mode 100644
index 00000000..f830a1f0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Latest.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+ int
+
+ 0
+
+
+
+ Obsolete
+ int
+
+ 0
+
+
+
+ Obsolete("This is obsolete.")
+ int
+
+ 0
+
+
+
+ int
+
+ 0
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Preview.cs
new file mode 100644
index 00000000..34fffe69
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Preview.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyVariable0 = 0;
+
+ [Obsolete]
+ public static int MyVariable1 = 0;
+
+ [Obsolete("This is obsolete.")]
+ public static int MyVariable2 = 0;
+
+ public static int MyVariable3 = 0;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Preview.xml
new file mode 100644
index 00000000..f830a1f0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Unix.Preview.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+ int
+
+ 0
+
+
+
+ Obsolete
+ int
+
+ 0
+
+
+
+ Obsolete("This is obsolete.")
+ int
+
+ 0
+
+
+
+ int
+
+ 0
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Compatible.cs
new file mode 100644
index 00000000..34fffe69
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Compatible.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyVariable0 = 0;
+
+ [Obsolete]
+ public static int MyVariable1 = 0;
+
+ [Obsolete("This is obsolete.")]
+ public static int MyVariable2 = 0;
+
+ public static int MyVariable3 = 0;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Compatible.xml
new file mode 100644
index 00000000..f830a1f0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Compatible.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+ int
+
+ 0
+
+
+
+ Obsolete
+ int
+
+ 0
+
+
+
+ Obsolete("This is obsolete.")
+ int
+
+ 0
+
+
+
+ int
+
+ 0
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Default.cs
new file mode 100644
index 00000000..34fffe69
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Default.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyVariable0 = 0;
+
+ [Obsolete]
+ public static int MyVariable1 = 0;
+
+ [Obsolete("This is obsolete.")]
+ public static int MyVariable2 = 0;
+
+ public static int MyVariable3 = 0;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Default.xml
new file mode 100644
index 00000000..f830a1f0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Default.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+ int
+
+ 0
+
+
+
+ Obsolete
+ int
+
+ 0
+
+
+
+ Obsolete("This is obsolete.")
+ int
+
+ 0
+
+
+
+ int
+
+ 0
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Latest.cs
new file mode 100644
index 00000000..34fffe69
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Latest.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyVariable0 = 0;
+
+ [Obsolete]
+ public static int MyVariable1 = 0;
+
+ [Obsolete("This is obsolete.")]
+ public static int MyVariable2 = 0;
+
+ public static int MyVariable3 = 0;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Latest.xml
new file mode 100644
index 00000000..f830a1f0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Latest.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+ int
+
+ 0
+
+
+
+ Obsolete
+ int
+
+ 0
+
+
+
+ Obsolete("This is obsolete.")
+ int
+
+ 0
+
+
+
+ int
+
+ 0
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Preview.cs
new file mode 100644
index 00000000..34fffe69
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Preview.cs
@@ -0,0 +1,17 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyVariable0 = 0;
+
+ [Obsolete]
+ public static int MyVariable1 = 0;
+
+ [Obsolete("This is obsolete.")]
+ public static int MyVariable2 = 0;
+
+ public static int MyVariable3 = 0;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Preview.xml
new file mode 100644
index 00000000..f830a1f0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.SimpleVarDecl.int.Windows.Preview.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+ int
+
+ 0
+
+
+
+ Obsolete
+ int
+
+ 0
+
+
+
+ Obsolete("This is obsolete.")
+ int
+
+ 0
+
+
+
+ int
+
+ 0
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Compatible.cs
new file mode 100644
index 00000000..faeadf2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Compatible.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct0
+ {
+ public int r;
+ }
+
+ [Obsolete]
+ public partial struct MyStruct1
+ {
+ public int r;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public partial struct MyStruct2
+ {
+ public int r;
+ }
+
+ public partial struct MyStruct3
+ {
+ public int r;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Compatible.xml
new file mode 100644
index 00000000..ffa4d12c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Compatible.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+
+
+ Obsolete
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+
+ int
+
+
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Default.cs
new file mode 100644
index 00000000..faeadf2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Default.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct0
+ {
+ public int r;
+ }
+
+ [Obsolete]
+ public partial struct MyStruct1
+ {
+ public int r;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public partial struct MyStruct2
+ {
+ public int r;
+ }
+
+ public partial struct MyStruct3
+ {
+ public int r;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Default.xml
new file mode 100644
index 00000000..ffa4d12c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Default.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+
+
+ Obsolete
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+
+ int
+
+
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Latest.cs
new file mode 100644
index 00000000..faeadf2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Latest.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct0
+ {
+ public int r;
+ }
+
+ [Obsolete]
+ public partial struct MyStruct1
+ {
+ public int r;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public partial struct MyStruct2
+ {
+ public int r;
+ }
+
+ public partial struct MyStruct3
+ {
+ public int r;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Latest.xml
new file mode 100644
index 00000000..ffa4d12c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Latest.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+
+
+ Obsolete
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+
+ int
+
+
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Preview.cs
new file mode 100644
index 00000000..faeadf2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Preview.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct0
+ {
+ public int r;
+ }
+
+ [Obsolete]
+ public partial struct MyStruct1
+ {
+ public int r;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public partial struct MyStruct2
+ {
+ public int r;
+ }
+
+ public partial struct MyStruct3
+ {
+ public int r;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Preview.xml
new file mode 100644
index 00000000..ffa4d12c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Unix.Preview.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+
+
+ Obsolete
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+
+ int
+
+
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Compatible.cs
new file mode 100644
index 00000000..faeadf2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Compatible.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct0
+ {
+ public int r;
+ }
+
+ [Obsolete]
+ public partial struct MyStruct1
+ {
+ public int r;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public partial struct MyStruct2
+ {
+ public int r;
+ }
+
+ public partial struct MyStruct3
+ {
+ public int r;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Compatible.xml
new file mode 100644
index 00000000..ffa4d12c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Compatible.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+
+
+ Obsolete
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+
+ int
+
+
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Default.cs
new file mode 100644
index 00000000..faeadf2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Default.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct0
+ {
+ public int r;
+ }
+
+ [Obsolete]
+ public partial struct MyStruct1
+ {
+ public int r;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public partial struct MyStruct2
+ {
+ public int r;
+ }
+
+ public partial struct MyStruct3
+ {
+ public int r;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Default.xml
new file mode 100644
index 00000000..ffa4d12c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Default.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+
+
+ Obsolete
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+
+ int
+
+
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Latest.cs
new file mode 100644
index 00000000..faeadf2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Latest.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct0
+ {
+ public int r;
+ }
+
+ [Obsolete]
+ public partial struct MyStruct1
+ {
+ public int r;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public partial struct MyStruct2
+ {
+ public int r;
+ }
+
+ public partial struct MyStruct3
+ {
+ public int r;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Latest.xml
new file mode 100644
index 00000000..ffa4d12c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Latest.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+
+
+ Obsolete
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+
+ int
+
+
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Preview.cs
new file mode 100644
index 00000000..faeadf2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Preview.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct0
+ {
+ public int r;
+ }
+
+ [Obsolete]
+ public partial struct MyStruct1
+ {
+ public int r;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public partial struct MyStruct2
+ {
+ public int r;
+ }
+
+ public partial struct MyStruct3
+ {
+ public int r;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Preview.xml
new file mode 100644
index 00000000..ffa4d12c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.StructDecl.Windows.Preview.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+
+
+ Obsolete
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+
+ int
+
+
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Compatible.cs
new file mode 100644
index 00000000..faeadf2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Compatible.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct0
+ {
+ public int r;
+ }
+
+ [Obsolete]
+ public partial struct MyStruct1
+ {
+ public int r;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public partial struct MyStruct2
+ {
+ public int r;
+ }
+
+ public partial struct MyStruct3
+ {
+ public int r;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Compatible.xml
new file mode 100644
index 00000000..ffa4d12c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Compatible.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+
+
+ Obsolete
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+
+ int
+
+
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Default.cs
new file mode 100644
index 00000000..faeadf2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Default.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct0
+ {
+ public int r;
+ }
+
+ [Obsolete]
+ public partial struct MyStruct1
+ {
+ public int r;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public partial struct MyStruct2
+ {
+ public int r;
+ }
+
+ public partial struct MyStruct3
+ {
+ public int r;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Default.xml
new file mode 100644
index 00000000..ffa4d12c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Default.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+
+
+ Obsolete
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+
+ int
+
+
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Latest.cs
new file mode 100644
index 00000000..faeadf2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Latest.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct0
+ {
+ public int r;
+ }
+
+ [Obsolete]
+ public partial struct MyStruct1
+ {
+ public int r;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public partial struct MyStruct2
+ {
+ public int r;
+ }
+
+ public partial struct MyStruct3
+ {
+ public int r;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Latest.xml
new file mode 100644
index 00000000..ffa4d12c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Latest.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+
+
+ Obsolete
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+
+ int
+
+
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Preview.cs
new file mode 100644
index 00000000..faeadf2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Preview.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct0
+ {
+ public int r;
+ }
+
+ [Obsolete]
+ public partial struct MyStruct1
+ {
+ public int r;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public partial struct MyStruct2
+ {
+ public int r;
+ }
+
+ public partial struct MyStruct3
+ {
+ public int r;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Preview.xml
new file mode 100644
index 00000000..ffa4d12c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Unix.Preview.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+
+
+ Obsolete
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+
+ int
+
+
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Compatible.cs
new file mode 100644
index 00000000..faeadf2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Compatible.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct0
+ {
+ public int r;
+ }
+
+ [Obsolete]
+ public partial struct MyStruct1
+ {
+ public int r;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public partial struct MyStruct2
+ {
+ public int r;
+ }
+
+ public partial struct MyStruct3
+ {
+ public int r;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Compatible.xml
new file mode 100644
index 00000000..ffa4d12c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Compatible.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+
+
+ Obsolete
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+
+ int
+
+
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Default.cs
new file mode 100644
index 00000000..faeadf2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Default.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct0
+ {
+ public int r;
+ }
+
+ [Obsolete]
+ public partial struct MyStruct1
+ {
+ public int r;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public partial struct MyStruct2
+ {
+ public int r;
+ }
+
+ public partial struct MyStruct3
+ {
+ public int r;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Default.xml
new file mode 100644
index 00000000..ffa4d12c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Default.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+
+
+ Obsolete
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+
+ int
+
+
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Latest.cs
new file mode 100644
index 00000000..faeadf2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Latest.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct0
+ {
+ public int r;
+ }
+
+ [Obsolete]
+ public partial struct MyStruct1
+ {
+ public int r;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public partial struct MyStruct2
+ {
+ public int r;
+ }
+
+ public partial struct MyStruct3
+ {
+ public int r;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Latest.xml
new file mode 100644
index 00000000..ffa4d12c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Latest.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+
+
+ Obsolete
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+
+ int
+
+
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Preview.cs
new file mode 100644
index 00000000..faeadf2c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Preview.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct0
+ {
+ public int r;
+ }
+
+ [Obsolete]
+ public partial struct MyStruct1
+ {
+ public int r;
+ }
+
+ [Obsolete("This is obsolete.")]
+ public partial struct MyStruct2
+ {
+ public int r;
+ }
+
+ public partial struct MyStruct3
+ {
+ public int r;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Preview.xml
new file mode 100644
index 00000000..ffa4d12c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/DeprecatedToObsoleteTest.TypedefStructDecl.Windows.Preview.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+
+
+ Obsolete
+
+ int
+
+
+
+ Obsolete("This is obsolete.")
+
+ int
+
+
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Compatible.cs
new file mode 100644
index 00000000..2fdb2f06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Compatible.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Compatible.xml
new file mode 100644
index 00000000..f9df59a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Default.cs
new file mode 100644
index 00000000..2fdb2f06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Default.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Default.xml
new file mode 100644
index 00000000..f9df59a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Latest.cs
new file mode 100644
index 00000000..2fdb2f06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Latest.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Latest.xml
new file mode 100644
index 00000000..f9df59a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Preview.cs
new file mode 100644
index 00000000..2fdb2f06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Preview.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Preview.xml
new file mode 100644
index 00000000..f9df59a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Compatible.cs
new file mode 100644
index 00000000..2fdb2f06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Compatible.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Compatible.xml
new file mode 100644
index 00000000..f9df59a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Default.cs
new file mode 100644
index 00000000..2fdb2f06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Default.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Default.xml
new file mode 100644
index 00000000..f9df59a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Latest.cs
new file mode 100644
index 00000000..2fdb2f06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Latest.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Latest.xml
new file mode 100644
index 00000000..f9df59a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Preview.cs
new file mode 100644
index 00000000..2fdb2f06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Preview.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Preview.xml
new file mode 100644
index 00000000..f9df59a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicTest.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Compatible.cs
new file mode 100644
index 00000000..a2b01b2d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Compatible.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value1 = 1,
+ MyEnum_Value2,
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Compatible.xml
new file mode 100644
index 00000000..05fb68d4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Compatible.xml
@@ -0,0 +1,20 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Default.cs
new file mode 100644
index 00000000..a2b01b2d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Default.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value1 = 1,
+ MyEnum_Value2,
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Default.xml
new file mode 100644
index 00000000..05fb68d4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Default.xml
@@ -0,0 +1,20 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Latest.cs
new file mode 100644
index 00000000..a2b01b2d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Latest.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value1 = 1,
+ MyEnum_Value2,
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Latest.xml
new file mode 100644
index 00000000..05fb68d4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Latest.xml
@@ -0,0 +1,20 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Preview.cs
new file mode 100644
index 00000000..a2b01b2d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Preview.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value1 = 1,
+ MyEnum_Value2,
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Preview.xml
new file mode 100644
index 00000000..05fb68d4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Unix.Preview.xml
@@ -0,0 +1,20 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Compatible.cs
new file mode 100644
index 00000000..a2b01b2d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Compatible.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value1 = 1,
+ MyEnum_Value2,
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Compatible.xml
new file mode 100644
index 00000000..05fb68d4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Compatible.xml
@@ -0,0 +1,20 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Default.cs
new file mode 100644
index 00000000..a2b01b2d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Default.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value1 = 1,
+ MyEnum_Value2,
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Default.xml
new file mode 100644
index 00000000..05fb68d4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Default.xml
@@ -0,0 +1,20 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Latest.cs
new file mode 100644
index 00000000..a2b01b2d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Latest.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value1 = 1,
+ MyEnum_Value2,
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Latest.xml
new file mode 100644
index 00000000..05fb68d4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Latest.xml
@@ -0,0 +1,20 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Preview.cs
new file mode 100644
index 00000000..a2b01b2d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Preview.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value1 = 1,
+ MyEnum_Value2,
+ MyEnum_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Preview.xml
new file mode 100644
index 00000000..05fb68d4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.BasicValueTest.Windows.Preview.xml
@@ -0,0 +1,20 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Unix.Compatible.cs
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Unix.Compatible.xml
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Unix.Default.cs
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Unix.Default.xml
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Unix.Latest.cs
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Unix.Latest.xml
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Unix.Preview.cs
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Unix.Preview.xml
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Windows.Compatible.cs
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Windows.Compatible.xml
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Windows.Default.cs
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Windows.Default.xml
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Windows.Latest.cs
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Windows.Latest.xml
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Windows.Preview.cs
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExcludeTest.Windows.Preview.xml
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Compatible.cs
new file mode 100644
index 00000000..2fdb2f06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Compatible.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Compatible.xml
new file mode 100644
index 00000000..f9df59a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Default.cs
new file mode 100644
index 00000000..2fdb2f06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Default.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Default.xml
new file mode 100644
index 00000000..f9df59a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Latest.cs
new file mode 100644
index 00000000..2fdb2f06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Latest.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Latest.xml
new file mode 100644
index 00000000..f9df59a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Preview.cs
new file mode 100644
index 00000000..2fdb2f06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Preview.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Preview.xml
new file mode 100644
index 00000000..f9df59a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Compatible.cs
new file mode 100644
index 00000000..2fdb2f06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Compatible.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Compatible.xml
new file mode 100644
index 00000000..f9df59a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Default.cs
new file mode 100644
index 00000000..2fdb2f06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Default.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Default.xml
new file mode 100644
index 00000000..f9df59a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Latest.cs
new file mode 100644
index 00000000..2fdb2f06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Latest.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Latest.xml
new file mode 100644
index 00000000..f9df59a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Preview.cs
new file mode 100644
index 00000000..2fdb2f06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Preview.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Preview.xml
new file mode 100644
index 00000000..f9df59a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.int.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Compatible.cs
new file mode 100644
index 00000000..016fbc5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("long long")]
+ public enum MyEnum : long
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Compatible.xml
new file mode 100644
index 00000000..599d4877
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ long
+
+ long
+
+
+ long
+
+
+ long
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Default.cs
new file mode 100644
index 00000000..016fbc5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("long long")]
+ public enum MyEnum : long
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Default.xml
new file mode 100644
index 00000000..599d4877
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ long
+
+ long
+
+
+ long
+
+
+ long
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Latest.cs
new file mode 100644
index 00000000..016fbc5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("long long")]
+ public enum MyEnum : long
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Latest.xml
new file mode 100644
index 00000000..599d4877
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ long
+
+ long
+
+
+ long
+
+
+ long
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Preview.cs
new file mode 100644
index 00000000..016fbc5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("long long")]
+ public enum MyEnum : long
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Preview.xml
new file mode 100644
index 00000000..599d4877
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ long
+
+ long
+
+
+ long
+
+
+ long
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Compatible.cs
new file mode 100644
index 00000000..016fbc5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("long long")]
+ public enum MyEnum : long
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Compatible.xml
new file mode 100644
index 00000000..599d4877
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ long
+
+ long
+
+
+ long
+
+
+ long
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Default.cs
new file mode 100644
index 00000000..016fbc5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("long long")]
+ public enum MyEnum : long
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Default.xml
new file mode 100644
index 00000000..599d4877
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ long
+
+ long
+
+
+ long
+
+
+ long
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Latest.cs
new file mode 100644
index 00000000..016fbc5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("long long")]
+ public enum MyEnum : long
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Latest.xml
new file mode 100644
index 00000000..599d4877
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ long
+
+ long
+
+
+ long
+
+
+ long
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Preview.cs
new file mode 100644
index 00000000..016fbc5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("long long")]
+ public enum MyEnum : long
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Preview.xml
new file mode 100644
index 00000000..599d4877
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.long long.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ long
+
+ long
+
+
+ long
+
+
+ long
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Compatible.cs
new file mode 100644
index 00000000..39444ef2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Compatible.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum : short
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Compatible.xml
new file mode 100644
index 00000000..37f04fdc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ short
+
+ short
+
+
+ short
+
+
+ short
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Default.cs
new file mode 100644
index 00000000..39444ef2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Default.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum : short
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Default.xml
new file mode 100644
index 00000000..37f04fdc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ short
+
+ short
+
+
+ short
+
+
+ short
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Latest.cs
new file mode 100644
index 00000000..39444ef2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Latest.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum : short
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Latest.xml
new file mode 100644
index 00000000..37f04fdc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ short
+
+ short
+
+
+ short
+
+
+ short
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Preview.cs
new file mode 100644
index 00000000..39444ef2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Preview.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum : short
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Preview.xml
new file mode 100644
index 00000000..37f04fdc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ short
+
+ short
+
+
+ short
+
+
+ short
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Compatible.cs
new file mode 100644
index 00000000..39444ef2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Compatible.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum : short
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Compatible.xml
new file mode 100644
index 00000000..37f04fdc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ short
+
+ short
+
+
+ short
+
+
+ short
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Default.cs
new file mode 100644
index 00000000..39444ef2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Default.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum : short
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Default.xml
new file mode 100644
index 00000000..37f04fdc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ short
+
+ short
+
+
+ short
+
+
+ short
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Latest.cs
new file mode 100644
index 00000000..39444ef2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Latest.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum : short
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Latest.xml
new file mode 100644
index 00000000..37f04fdc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ short
+
+ short
+
+
+ short
+
+
+ short
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Preview.cs
new file mode 100644
index 00000000..39444ef2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Preview.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum : short
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Preview.xml
new file mode 100644
index 00000000..37f04fdc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.short.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ short
+
+ short
+
+
+ short
+
+
+ short
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Compatible.cs
new file mode 100644
index 00000000..0ed5362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Compatible.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Default.cs
new file mode 100644
index 00000000..0ed5362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Default.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Latest.cs
new file mode 100644
index 00000000..0ed5362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Latest.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Preview.cs
new file mode 100644
index 00000000..0ed5362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Preview.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Compatible.cs
new file mode 100644
index 00000000..0ed5362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Compatible.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Default.cs
new file mode 100644
index 00000000..0ed5362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Default.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Latest.cs
new file mode 100644
index 00000000..0ed5362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Latest.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Preview.cs
new file mode 100644
index 00000000..0ed5362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Preview.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedTest.unsigned.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Compatible.cs
new file mode 100644
index 00000000..016fbc5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("long long")]
+ public enum MyEnum : long
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Compatible.xml
new file mode 100644
index 00000000..599d4877
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ long
+
+ long
+
+
+ long
+
+
+ long
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Default.cs
new file mode 100644
index 00000000..016fbc5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("long long")]
+ public enum MyEnum : long
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Default.xml
new file mode 100644
index 00000000..599d4877
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ long
+
+ long
+
+
+ long
+
+
+ long
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Latest.cs
new file mode 100644
index 00000000..016fbc5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("long long")]
+ public enum MyEnum : long
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Latest.xml
new file mode 100644
index 00000000..599d4877
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ long
+
+ long
+
+
+ long
+
+
+ long
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Preview.cs
new file mode 100644
index 00000000..016fbc5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("long long")]
+ public enum MyEnum : long
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Preview.xml
new file mode 100644
index 00000000..599d4877
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ long
+
+ long
+
+
+ long
+
+
+ long
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Compatible.cs
new file mode 100644
index 00000000..016fbc5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("long long")]
+ public enum MyEnum : long
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Compatible.xml
new file mode 100644
index 00000000..599d4877
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ long
+
+ long
+
+
+ long
+
+
+ long
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Default.cs
new file mode 100644
index 00000000..016fbc5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("long long")]
+ public enum MyEnum : long
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Default.xml
new file mode 100644
index 00000000..599d4877
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ long
+
+ long
+
+
+ long
+
+
+ long
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Latest.cs
new file mode 100644
index 00000000..016fbc5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("long long")]
+ public enum MyEnum : long
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Latest.xml
new file mode 100644
index 00000000..599d4877
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ long
+
+ long
+
+
+ long
+
+
+ long
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Preview.cs
new file mode 100644
index 00000000..016fbc5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("long long")]
+ public enum MyEnum : long
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Preview.xml
new file mode 100644
index 00000000..599d4877
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.long long.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ long
+
+ long
+
+
+ long
+
+
+ long
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Compatible.cs
new file mode 100644
index 00000000..468387f1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("signed char")]
+ public enum MyEnum : sbyte
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Compatible.xml
new file mode 100644
index 00000000..d14a1566
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ sbyte
+
+ sbyte
+
+
+ sbyte
+
+
+ sbyte
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Default.cs
new file mode 100644
index 00000000..468387f1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("signed char")]
+ public enum MyEnum : sbyte
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Default.xml
new file mode 100644
index 00000000..d14a1566
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ sbyte
+
+ sbyte
+
+
+ sbyte
+
+
+ sbyte
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Latest.cs
new file mode 100644
index 00000000..468387f1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("signed char")]
+ public enum MyEnum : sbyte
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Latest.xml
new file mode 100644
index 00000000..d14a1566
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ sbyte
+
+ sbyte
+
+
+ sbyte
+
+
+ sbyte
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Preview.cs
new file mode 100644
index 00000000..468387f1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("signed char")]
+ public enum MyEnum : sbyte
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Preview.xml
new file mode 100644
index 00000000..d14a1566
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ sbyte
+
+ sbyte
+
+
+ sbyte
+
+
+ sbyte
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Compatible.cs
new file mode 100644
index 00000000..468387f1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("signed char")]
+ public enum MyEnum : sbyte
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Compatible.xml
new file mode 100644
index 00000000..d14a1566
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ sbyte
+
+ sbyte
+
+
+ sbyte
+
+
+ sbyte
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Default.cs
new file mode 100644
index 00000000..468387f1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("signed char")]
+ public enum MyEnum : sbyte
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Default.xml
new file mode 100644
index 00000000..d14a1566
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ sbyte
+
+ sbyte
+
+
+ sbyte
+
+
+ sbyte
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Latest.cs
new file mode 100644
index 00000000..468387f1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("signed char")]
+ public enum MyEnum : sbyte
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Latest.xml
new file mode 100644
index 00000000..d14a1566
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ sbyte
+
+ sbyte
+
+
+ sbyte
+
+
+ sbyte
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Preview.cs
new file mode 100644
index 00000000..468387f1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("signed char")]
+ public enum MyEnum : sbyte
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Preview.xml
new file mode 100644
index 00000000..d14a1566
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.signed char.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ sbyte
+
+ sbyte
+
+
+ sbyte
+
+
+ sbyte
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Compatible.cs
new file mode 100644
index 00000000..14cacb0b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned char")]
+ public enum MyEnum : byte
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Compatible.xml
new file mode 100644
index 00000000..f63a4d86
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ byte
+
+ byte
+
+
+ byte
+
+
+ byte
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Default.cs
new file mode 100644
index 00000000..14cacb0b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned char")]
+ public enum MyEnum : byte
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Default.xml
new file mode 100644
index 00000000..f63a4d86
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ byte
+
+ byte
+
+
+ byte
+
+
+ byte
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Latest.cs
new file mode 100644
index 00000000..14cacb0b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned char")]
+ public enum MyEnum : byte
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Latest.xml
new file mode 100644
index 00000000..f63a4d86
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ byte
+
+ byte
+
+
+ byte
+
+
+ byte
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Preview.cs
new file mode 100644
index 00000000..14cacb0b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned char")]
+ public enum MyEnum : byte
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Preview.xml
new file mode 100644
index 00000000..f63a4d86
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ byte
+
+ byte
+
+
+ byte
+
+
+ byte
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Compatible.cs
new file mode 100644
index 00000000..14cacb0b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned char")]
+ public enum MyEnum : byte
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Compatible.xml
new file mode 100644
index 00000000..f63a4d86
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ byte
+
+ byte
+
+
+ byte
+
+
+ byte
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Default.cs
new file mode 100644
index 00000000..14cacb0b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned char")]
+ public enum MyEnum : byte
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Default.xml
new file mode 100644
index 00000000..f63a4d86
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ byte
+
+ byte
+
+
+ byte
+
+
+ byte
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Latest.cs
new file mode 100644
index 00000000..14cacb0b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned char")]
+ public enum MyEnum : byte
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Latest.xml
new file mode 100644
index 00000000..f63a4d86
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ byte
+
+ byte
+
+
+ byte
+
+
+ byte
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Preview.cs
new file mode 100644
index 00000000..14cacb0b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned char")]
+ public enum MyEnum : byte
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Preview.xml
new file mode 100644
index 00000000..f63a4d86
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned char.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ byte
+
+ byte
+
+
+ byte
+
+
+ byte
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Compatible.cs
new file mode 100644
index 00000000..0ed5362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Compatible.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Default.cs
new file mode 100644
index 00000000..0ed5362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Default.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Latest.cs
new file mode 100644
index 00000000..0ed5362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Latest.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Preview.cs
new file mode 100644
index 00000000..0ed5362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Preview.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Compatible.cs
new file mode 100644
index 00000000..0ed5362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Compatible.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Default.cs
new file mode 100644
index 00000000..0ed5362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Default.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Latest.cs
new file mode 100644
index 00000000..0ed5362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Latest.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Preview.cs
new file mode 100644
index 00000000..0ed5362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Preview.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned int.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Compatible.cs
new file mode 100644
index 00000000..9863a1d8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned long long")]
+ public enum MyEnum : ulong
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Compatible.xml
new file mode 100644
index 00000000..61d3c28b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ ulong
+
+ ulong
+
+
+ ulong
+
+
+ ulong
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Default.cs
new file mode 100644
index 00000000..9863a1d8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned long long")]
+ public enum MyEnum : ulong
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Default.xml
new file mode 100644
index 00000000..61d3c28b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ ulong
+
+ ulong
+
+
+ ulong
+
+
+ ulong
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Latest.cs
new file mode 100644
index 00000000..9863a1d8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned long long")]
+ public enum MyEnum : ulong
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Latest.xml
new file mode 100644
index 00000000..61d3c28b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ ulong
+
+ ulong
+
+
+ ulong
+
+
+ ulong
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Preview.cs
new file mode 100644
index 00000000..9863a1d8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned long long")]
+ public enum MyEnum : ulong
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Preview.xml
new file mode 100644
index 00000000..61d3c28b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ ulong
+
+ ulong
+
+
+ ulong
+
+
+ ulong
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Compatible.cs
new file mode 100644
index 00000000..9863a1d8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned long long")]
+ public enum MyEnum : ulong
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Compatible.xml
new file mode 100644
index 00000000..61d3c28b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ ulong
+
+ ulong
+
+
+ ulong
+
+
+ ulong
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Default.cs
new file mode 100644
index 00000000..9863a1d8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned long long")]
+ public enum MyEnum : ulong
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Default.xml
new file mode 100644
index 00000000..61d3c28b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ ulong
+
+ ulong
+
+
+ ulong
+
+
+ ulong
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Latest.cs
new file mode 100644
index 00000000..9863a1d8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned long long")]
+ public enum MyEnum : ulong
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Latest.xml
new file mode 100644
index 00000000..61d3c28b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ ulong
+
+ ulong
+
+
+ ulong
+
+
+ ulong
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Preview.cs
new file mode 100644
index 00000000..9863a1d8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned long long")]
+ public enum MyEnum : ulong
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Preview.xml
new file mode 100644
index 00000000..61d3c28b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned long long.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ ulong
+
+ ulong
+
+
+ ulong
+
+
+ ulong
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Compatible.cs
new file mode 100644
index 00000000..afca334d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned short")]
+ public enum MyEnum : ushort
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Compatible.xml
new file mode 100644
index 00000000..488775b9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ ushort
+
+ ushort
+
+
+ ushort
+
+
+ ushort
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Default.cs
new file mode 100644
index 00000000..afca334d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned short")]
+ public enum MyEnum : ushort
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Default.xml
new file mode 100644
index 00000000..488775b9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ ushort
+
+ ushort
+
+
+ ushort
+
+
+ ushort
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Latest.cs
new file mode 100644
index 00000000..afca334d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned short")]
+ public enum MyEnum : ushort
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Latest.xml
new file mode 100644
index 00000000..488775b9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ ushort
+
+ ushort
+
+
+ ushort
+
+
+ ushort
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Preview.cs
new file mode 100644
index 00000000..afca334d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned short")]
+ public enum MyEnum : ushort
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Preview.xml
new file mode 100644
index 00000000..488775b9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ ushort
+
+ ushort
+
+
+ ushort
+
+
+ ushort
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Compatible.cs
new file mode 100644
index 00000000..afca334d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned short")]
+ public enum MyEnum : ushort
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Compatible.xml
new file mode 100644
index 00000000..488775b9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ ushort
+
+ ushort
+
+
+ ushort
+
+
+ ushort
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Default.cs
new file mode 100644
index 00000000..afca334d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned short")]
+ public enum MyEnum : ushort
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Default.xml
new file mode 100644
index 00000000..488775b9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ ushort
+
+ ushort
+
+
+ ushort
+
+
+ ushort
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Latest.cs
new file mode 100644
index 00000000..afca334d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned short")]
+ public enum MyEnum : ushort
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Latest.xml
new file mode 100644
index 00000000..488775b9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ ushort
+
+ ushort
+
+
+ ushort
+
+
+ ushort
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Preview.cs
new file mode 100644
index 00000000..afca334d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("unsigned short")]
+ public enum MyEnum : ushort
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Preview.xml
new file mode 100644
index 00000000..488775b9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.ExplicitTypedWithNativeTypeNameTest.unsigned short.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ ushort
+
+ ushort
+
+
+ ushort
+
+
+ ushort
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Compatible.cs
new file mode 100644
index 00000000..f4629b97
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Compatible.cs
@@ -0,0 +1,30 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1,
+ MyEnum1_Value2,
+ MyEnum1_Value3,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1,
+ MyEnum2_Value2,
+ MyEnum2_Value3,
+ }
+
+ public enum MyEnum3
+ {
+ MyEnum3_Value1,
+ MyEnum3_Value2,
+ MyEnum3_Value3,
+ }
+
+ public enum MyEnum4
+ {
+ MyEnum4_Value1,
+ MyEnum4_Value2,
+ MyEnum4_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Compatible.xml
new file mode 100644
index 00000000..df2395fc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Compatible.xml
@@ -0,0 +1,53 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Default.cs
new file mode 100644
index 00000000..f4629b97
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Default.cs
@@ -0,0 +1,30 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1,
+ MyEnum1_Value2,
+ MyEnum1_Value3,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1,
+ MyEnum2_Value2,
+ MyEnum2_Value3,
+ }
+
+ public enum MyEnum3
+ {
+ MyEnum3_Value1,
+ MyEnum3_Value2,
+ MyEnum3_Value3,
+ }
+
+ public enum MyEnum4
+ {
+ MyEnum4_Value1,
+ MyEnum4_Value2,
+ MyEnum4_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Default.xml
new file mode 100644
index 00000000..df2395fc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Default.xml
@@ -0,0 +1,53 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Latest.cs
new file mode 100644
index 00000000..f4629b97
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Latest.cs
@@ -0,0 +1,30 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1,
+ MyEnum1_Value2,
+ MyEnum1_Value3,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1,
+ MyEnum2_Value2,
+ MyEnum2_Value3,
+ }
+
+ public enum MyEnum3
+ {
+ MyEnum3_Value1,
+ MyEnum3_Value2,
+ MyEnum3_Value3,
+ }
+
+ public enum MyEnum4
+ {
+ MyEnum4_Value1,
+ MyEnum4_Value2,
+ MyEnum4_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Latest.xml
new file mode 100644
index 00000000..df2395fc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Latest.xml
@@ -0,0 +1,53 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Preview.cs
new file mode 100644
index 00000000..f4629b97
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Preview.cs
@@ -0,0 +1,30 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1,
+ MyEnum1_Value2,
+ MyEnum1_Value3,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1,
+ MyEnum2_Value2,
+ MyEnum2_Value3,
+ }
+
+ public enum MyEnum3
+ {
+ MyEnum3_Value1,
+ MyEnum3_Value2,
+ MyEnum3_Value3,
+ }
+
+ public enum MyEnum4
+ {
+ MyEnum4_Value1,
+ MyEnum4_Value2,
+ MyEnum4_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Preview.xml
new file mode 100644
index 00000000..df2395fc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Unix.Preview.xml
@@ -0,0 +1,53 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Compatible.cs
new file mode 100644
index 00000000..f4629b97
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Compatible.cs
@@ -0,0 +1,30 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1,
+ MyEnum1_Value2,
+ MyEnum1_Value3,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1,
+ MyEnum2_Value2,
+ MyEnum2_Value3,
+ }
+
+ public enum MyEnum3
+ {
+ MyEnum3_Value1,
+ MyEnum3_Value2,
+ MyEnum3_Value3,
+ }
+
+ public enum MyEnum4
+ {
+ MyEnum4_Value1,
+ MyEnum4_Value2,
+ MyEnum4_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Compatible.xml
new file mode 100644
index 00000000..df2395fc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Compatible.xml
@@ -0,0 +1,53 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Default.cs
new file mode 100644
index 00000000..f4629b97
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Default.cs
@@ -0,0 +1,30 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1,
+ MyEnum1_Value2,
+ MyEnum1_Value3,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1,
+ MyEnum2_Value2,
+ MyEnum2_Value3,
+ }
+
+ public enum MyEnum3
+ {
+ MyEnum3_Value1,
+ MyEnum3_Value2,
+ MyEnum3_Value3,
+ }
+
+ public enum MyEnum4
+ {
+ MyEnum4_Value1,
+ MyEnum4_Value2,
+ MyEnum4_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Default.xml
new file mode 100644
index 00000000..df2395fc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Default.xml
@@ -0,0 +1,53 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Latest.cs
new file mode 100644
index 00000000..f4629b97
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Latest.cs
@@ -0,0 +1,30 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1,
+ MyEnum1_Value2,
+ MyEnum1_Value3,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1,
+ MyEnum2_Value2,
+ MyEnum2_Value3,
+ }
+
+ public enum MyEnum3
+ {
+ MyEnum3_Value1,
+ MyEnum3_Value2,
+ MyEnum3_Value3,
+ }
+
+ public enum MyEnum4
+ {
+ MyEnum4_Value1,
+ MyEnum4_Value2,
+ MyEnum4_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Latest.xml
new file mode 100644
index 00000000..df2395fc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Latest.xml
@@ -0,0 +1,53 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Preview.cs
new file mode 100644
index 00000000..f4629b97
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Preview.cs
@@ -0,0 +1,30 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1,
+ MyEnum1_Value2,
+ MyEnum1_Value3,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1,
+ MyEnum2_Value2,
+ MyEnum2_Value3,
+ }
+
+ public enum MyEnum3
+ {
+ MyEnum3_Value1,
+ MyEnum3_Value2,
+ MyEnum3_Value3,
+ }
+
+ public enum MyEnum4
+ {
+ MyEnum4_Value1,
+ MyEnum4_Value2,
+ MyEnum4_Value3,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Preview.xml
new file mode 100644
index 00000000..df2395fc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.RemapTest.Windows.Preview.xml
@@ -0,0 +1,53 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Compatible.cs
new file mode 100644
index 00000000..1ba5fe8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Compatible.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.Methods;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+
+ public static partial class Methods
+ {
+ public const uint MyEnum1_Value1 = 1;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Compatible.xml
new file mode 100644
index 00000000..26f7ce06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Compatible.xml
@@ -0,0 +1,22 @@
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
+ uint
+
+ 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Default.cs
new file mode 100644
index 00000000..1ba5fe8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Default.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.Methods;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+
+ public static partial class Methods
+ {
+ public const uint MyEnum1_Value1 = 1;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Default.xml
new file mode 100644
index 00000000..26f7ce06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Default.xml
@@ -0,0 +1,22 @@
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
+ uint
+
+ 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Latest.cs
new file mode 100644
index 00000000..1ba5fe8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Latest.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.Methods;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+
+ public static partial class Methods
+ {
+ public const uint MyEnum1_Value1 = 1;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Latest.xml
new file mode 100644
index 00000000..26f7ce06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Latest.xml
@@ -0,0 +1,22 @@
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
+ uint
+
+ 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Preview.cs
new file mode 100644
index 00000000..1ba5fe8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Preview.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.Methods;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+
+ public static partial class Methods
+ {
+ public const uint MyEnum1_Value1 = 1;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Preview.xml
new file mode 100644
index 00000000..26f7ce06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Unix.Preview.xml
@@ -0,0 +1,22 @@
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
+ uint
+
+ 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Compatible.cs
new file mode 100644
index 00000000..4e3236cb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Compatible.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.Methods;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+
+ public static partial class Methods
+ {
+ public const int MyEnum1_Value1 = 1;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Compatible.xml
new file mode 100644
index 00000000..4a4dc354
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Compatible.xml
@@ -0,0 +1,22 @@
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
+ int
+
+ 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Default.cs
new file mode 100644
index 00000000..4e3236cb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Default.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.Methods;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+
+ public static partial class Methods
+ {
+ public const int MyEnum1_Value1 = 1;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Default.xml
new file mode 100644
index 00000000..4a4dc354
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Default.xml
@@ -0,0 +1,22 @@
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
+ int
+
+ 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Latest.cs
new file mode 100644
index 00000000..4e3236cb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Latest.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.Methods;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+
+ public static partial class Methods
+ {
+ public const int MyEnum1_Value1 = 1;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Latest.xml
new file mode 100644
index 00000000..4a4dc354
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Latest.xml
@@ -0,0 +1,22 @@
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
+ int
+
+ 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Preview.cs
new file mode 100644
index 00000000..4e3236cb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Preview.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.Methods;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+
+ public static partial class Methods
+ {
+ public const int MyEnum1_Value1 = 1;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Preview.xml
new file mode 100644
index 00000000..4a4dc354
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAnonymousEnumTest.Windows.Preview.xml
@@ -0,0 +1,22 @@
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
+ int
+
+ 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Compatible.cs
new file mode 100644
index 00000000..99f3c671
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Compatible.cs
@@ -0,0 +1,15 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ [Flags]
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = 1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Compatible.xml
new file mode 100644
index 00000000..342450a9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Compatible.xml
@@ -0,0 +1,24 @@
+
+
+
+
+ Flags
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Default.cs
new file mode 100644
index 00000000..99f3c671
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Default.cs
@@ -0,0 +1,15 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ [Flags]
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = 1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Default.xml
new file mode 100644
index 00000000..342450a9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Default.xml
@@ -0,0 +1,24 @@
+
+
+
+
+ Flags
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Latest.cs
new file mode 100644
index 00000000..99f3c671
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Latest.cs
@@ -0,0 +1,15 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ [Flags]
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = 1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Latest.xml
new file mode 100644
index 00000000..342450a9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Latest.xml
@@ -0,0 +1,24 @@
+
+
+
+
+ Flags
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Preview.cs
new file mode 100644
index 00000000..99f3c671
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Preview.cs
@@ -0,0 +1,15 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ [Flags]
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = 1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Preview.xml
new file mode 100644
index 00000000..342450a9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Unix.Preview.xml
@@ -0,0 +1,24 @@
+
+
+
+
+ Flags
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Compatible.cs
new file mode 100644
index 00000000..99f3c671
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Compatible.cs
@@ -0,0 +1,15 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ [Flags]
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = 1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Compatible.xml
new file mode 100644
index 00000000..342450a9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Compatible.xml
@@ -0,0 +1,24 @@
+
+
+
+
+ Flags
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Default.cs
new file mode 100644
index 00000000..99f3c671
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Default.cs
@@ -0,0 +1,15 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ [Flags]
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = 1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Default.xml
new file mode 100644
index 00000000..342450a9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Default.xml
@@ -0,0 +1,24 @@
+
+
+
+
+ Flags
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Latest.cs
new file mode 100644
index 00000000..99f3c671
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Latest.cs
@@ -0,0 +1,15 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ [Flags]
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = 1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Latest.xml
new file mode 100644
index 00000000..342450a9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Latest.xml
@@ -0,0 +1,24 @@
+
+
+
+
+ Flags
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Preview.cs
new file mode 100644
index 00000000..99f3c671
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Preview.cs
@@ -0,0 +1,15 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ [Flags]
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = 1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Preview.xml
new file mode 100644
index 00000000..342450a9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithAttributeTest.Windows.Preview.xml
@@ -0,0 +1,24 @@
+
+
+
+
+ Flags
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Compatible.cs
new file mode 100644
index 00000000..9970e625
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Compatible.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0 = (int)(MyEnum)(10),
+ MyEnum_Value1 = (int)(MyEnum)(MyEnum_Value0),
+ MyEnum_Value2 = ((int)(MyEnum)(10)) + MyEnum_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Compatible.xml
new file mode 100644
index 00000000..7e684d84
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Compatible.xml
@@ -0,0 +1,26 @@
+
+
+
+
+ int
+
+ int
+
+ (int)(MyEnum)(10)
+
+
+
+ int
+
+ (int)(MyEnum)(MyEnum_Value0)
+
+
+
+ int
+
+ ((int)(MyEnum)(10)) + MyEnum_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Default.cs
new file mode 100644
index 00000000..9970e625
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Default.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0 = (int)(MyEnum)(10),
+ MyEnum_Value1 = (int)(MyEnum)(MyEnum_Value0),
+ MyEnum_Value2 = ((int)(MyEnum)(10)) + MyEnum_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Default.xml
new file mode 100644
index 00000000..7e684d84
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Default.xml
@@ -0,0 +1,26 @@
+
+
+
+
+ int
+
+ int
+
+ (int)(MyEnum)(10)
+
+
+
+ int
+
+ (int)(MyEnum)(MyEnum_Value0)
+
+
+
+ int
+
+ ((int)(MyEnum)(10)) + MyEnum_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Latest.cs
new file mode 100644
index 00000000..9970e625
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Latest.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0 = (int)(MyEnum)(10),
+ MyEnum_Value1 = (int)(MyEnum)(MyEnum_Value0),
+ MyEnum_Value2 = ((int)(MyEnum)(10)) + MyEnum_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Latest.xml
new file mode 100644
index 00000000..7e684d84
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Latest.xml
@@ -0,0 +1,26 @@
+
+
+
+
+ int
+
+ int
+
+ (int)(MyEnum)(10)
+
+
+
+ int
+
+ (int)(MyEnum)(MyEnum_Value0)
+
+
+
+ int
+
+ ((int)(MyEnum)(10)) + MyEnum_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Preview.cs
new file mode 100644
index 00000000..9970e625
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Preview.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0 = (int)(MyEnum)(10),
+ MyEnum_Value1 = (int)(MyEnum)(MyEnum_Value0),
+ MyEnum_Value2 = ((int)(MyEnum)(10)) + MyEnum_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Preview.xml
new file mode 100644
index 00000000..7e684d84
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Unix.Preview.xml
@@ -0,0 +1,26 @@
+
+
+
+
+ int
+
+ int
+
+ (int)(MyEnum)(10)
+
+
+
+ int
+
+ (int)(MyEnum)(MyEnum_Value0)
+
+
+
+ int
+
+ ((int)(MyEnum)(10)) + MyEnum_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Compatible.cs
new file mode 100644
index 00000000..9970e625
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Compatible.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0 = (int)(MyEnum)(10),
+ MyEnum_Value1 = (int)(MyEnum)(MyEnum_Value0),
+ MyEnum_Value2 = ((int)(MyEnum)(10)) + MyEnum_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Compatible.xml
new file mode 100644
index 00000000..7e684d84
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Compatible.xml
@@ -0,0 +1,26 @@
+
+
+
+
+ int
+
+ int
+
+ (int)(MyEnum)(10)
+
+
+
+ int
+
+ (int)(MyEnum)(MyEnum_Value0)
+
+
+
+ int
+
+ ((int)(MyEnum)(10)) + MyEnum_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Default.cs
new file mode 100644
index 00000000..9970e625
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Default.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0 = (int)(MyEnum)(10),
+ MyEnum_Value1 = (int)(MyEnum)(MyEnum_Value0),
+ MyEnum_Value2 = ((int)(MyEnum)(10)) + MyEnum_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Default.xml
new file mode 100644
index 00000000..7e684d84
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Default.xml
@@ -0,0 +1,26 @@
+
+
+
+
+ int
+
+ int
+
+ (int)(MyEnum)(10)
+
+
+
+ int
+
+ (int)(MyEnum)(MyEnum_Value0)
+
+
+
+ int
+
+ ((int)(MyEnum)(10)) + MyEnum_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Latest.cs
new file mode 100644
index 00000000..9970e625
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Latest.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0 = (int)(MyEnum)(10),
+ MyEnum_Value1 = (int)(MyEnum)(MyEnum_Value0),
+ MyEnum_Value2 = ((int)(MyEnum)(10)) + MyEnum_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Latest.xml
new file mode 100644
index 00000000..7e684d84
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Latest.xml
@@ -0,0 +1,26 @@
+
+
+
+
+ int
+
+ int
+
+ (int)(MyEnum)(10)
+
+
+
+ int
+
+ (int)(MyEnum)(MyEnum_Value0)
+
+
+
+ int
+
+ ((int)(MyEnum)(10)) + MyEnum_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Preview.cs
new file mode 100644
index 00000000..9970e625
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Preview.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0 = (int)(MyEnum)(10),
+ MyEnum_Value1 = (int)(MyEnum)(MyEnum_Value0),
+ MyEnum_Value2 = ((int)(MyEnum)(10)) + MyEnum_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Preview.xml
new file mode 100644
index 00000000..7e684d84
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithCastToEnumType.Windows.Preview.xml
@@ -0,0 +1,26 @@
+
+
+
+
+ int
+
+ int
+
+ (int)(MyEnum)(10)
+
+
+
+ int
+
+ (int)(MyEnum)(MyEnum_Value0)
+
+
+
+ int
+
+ ((int)(MyEnum)(10)) + MyEnum_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Compatible.cs
new file mode 100644
index 00000000..b7334681
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Compatible.cs
@@ -0,0 +1,15 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value0 = 10,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value0 = MyEnum1_Value0,
+ MyEnum2_Value1 = MyEnum1_Value0 + (int)(MyEnum1)(10),
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Compatible.xml
new file mode 100644
index 00000000..246269d6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Compatible.xml
@@ -0,0 +1,29 @@
+
+
+
+
+ int
+
+ int
+
+ 10
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value0
+
+
+
+ int
+
+ MyEnum1_Value0 + (int)(MyEnum1)(10)
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Default.cs
new file mode 100644
index 00000000..b7334681
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Default.cs
@@ -0,0 +1,15 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value0 = 10,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value0 = MyEnum1_Value0,
+ MyEnum2_Value1 = MyEnum1_Value0 + (int)(MyEnum1)(10),
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Default.xml
new file mode 100644
index 00000000..246269d6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Default.xml
@@ -0,0 +1,29 @@
+
+
+
+
+ int
+
+ int
+
+ 10
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value0
+
+
+
+ int
+
+ MyEnum1_Value0 + (int)(MyEnum1)(10)
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Latest.cs
new file mode 100644
index 00000000..b7334681
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Latest.cs
@@ -0,0 +1,15 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value0 = 10,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value0 = MyEnum1_Value0,
+ MyEnum2_Value1 = MyEnum1_Value0 + (int)(MyEnum1)(10),
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Latest.xml
new file mode 100644
index 00000000..246269d6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Latest.xml
@@ -0,0 +1,29 @@
+
+
+
+
+ int
+
+ int
+
+ 10
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value0
+
+
+
+ int
+
+ MyEnum1_Value0 + (int)(MyEnum1)(10)
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Preview.cs
new file mode 100644
index 00000000..b7334681
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Preview.cs
@@ -0,0 +1,15 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value0 = 10,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value0 = MyEnum1_Value0,
+ MyEnum2_Value1 = MyEnum1_Value0 + (int)(MyEnum1)(10),
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Preview.xml
new file mode 100644
index 00000000..246269d6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Unix.Preview.xml
@@ -0,0 +1,29 @@
+
+
+
+
+ int
+
+ int
+
+ 10
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value0
+
+
+
+ int
+
+ MyEnum1_Value0 + (int)(MyEnum1)(10)
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Compatible.cs
new file mode 100644
index 00000000..b7334681
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Compatible.cs
@@ -0,0 +1,15 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value0 = 10,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value0 = MyEnum1_Value0,
+ MyEnum2_Value1 = MyEnum1_Value0 + (int)(MyEnum1)(10),
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Compatible.xml
new file mode 100644
index 00000000..246269d6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Compatible.xml
@@ -0,0 +1,29 @@
+
+
+
+
+ int
+
+ int
+
+ 10
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value0
+
+
+
+ int
+
+ MyEnum1_Value0 + (int)(MyEnum1)(10)
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Default.cs
new file mode 100644
index 00000000..b7334681
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Default.cs
@@ -0,0 +1,15 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value0 = 10,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value0 = MyEnum1_Value0,
+ MyEnum2_Value1 = MyEnum1_Value0 + (int)(MyEnum1)(10),
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Default.xml
new file mode 100644
index 00000000..246269d6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Default.xml
@@ -0,0 +1,29 @@
+
+
+
+
+ int
+
+ int
+
+ 10
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value0
+
+
+
+ int
+
+ MyEnum1_Value0 + (int)(MyEnum1)(10)
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Latest.cs
new file mode 100644
index 00000000..b7334681
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Latest.cs
@@ -0,0 +1,15 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value0 = 10,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value0 = MyEnum1_Value0,
+ MyEnum2_Value1 = MyEnum1_Value0 + (int)(MyEnum1)(10),
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Latest.xml
new file mode 100644
index 00000000..246269d6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Latest.xml
@@ -0,0 +1,29 @@
+
+
+
+
+ int
+
+ int
+
+ 10
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value0
+
+
+
+ int
+
+ MyEnum1_Value0 + (int)(MyEnum1)(10)
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Preview.cs
new file mode 100644
index 00000000..b7334681
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Preview.cs
@@ -0,0 +1,15 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value0 = 10,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value0 = MyEnum1_Value0,
+ MyEnum2_Value1 = MyEnum1_Value0 + (int)(MyEnum1)(10),
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Preview.xml
new file mode 100644
index 00000000..246269d6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithMultipleEnumsTest.Windows.Preview.xml
@@ -0,0 +1,29 @@
+
+
+
+
+ int
+
+ int
+
+ 10
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value0
+
+
+
+ int
+
+ MyEnum1_Value0 + (int)(MyEnum1)(10)
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Compatible.cs
new file mode 100644
index 00000000..9e34d3ae
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Compatible.cs
@@ -0,0 +1,15 @@
+using System;
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Compatible.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Compatible.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Default.cs
new file mode 100644
index 00000000..9e34d3ae
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Default.cs
@@ -0,0 +1,15 @@
+using System;
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Default.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Default.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Latest.cs
new file mode 100644
index 00000000..9e34d3ae
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Latest.cs
@@ -0,0 +1,15 @@
+using System;
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Latest.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Latest.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Preview.cs
new file mode 100644
index 00000000..9e34d3ae
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Preview.cs
@@ -0,0 +1,15 @@
+using System;
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Preview.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Unix.Preview.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Compatible.cs
new file mode 100644
index 00000000..9e34d3ae
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Compatible.cs
@@ -0,0 +1,15 @@
+using System;
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Compatible.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Compatible.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Default.cs
new file mode 100644
index 00000000..9e34d3ae
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Default.cs
@@ -0,0 +1,15 @@
+using System;
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Default.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Default.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Latest.cs
new file mode 100644
index 00000000..9e34d3ae
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Latest.cs
@@ -0,0 +1,15 @@
+using System;
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Latest.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Latest.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Preview.cs
new file mode 100644
index 00000000..9e34d3ae
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Preview.cs
@@ -0,0 +1,15 @@
+using System;
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Preview.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarPlusTest.Windows.Preview.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Compatible.cs
new file mode 100644
index 00000000..31d97b83
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Compatible.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Compatible.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Compatible.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Default.cs
new file mode 100644
index 00000000..31d97b83
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Default.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Default.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Default.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Latest.cs
new file mode 100644
index 00000000..31d97b83
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Latest.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Latest.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Latest.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Preview.cs
new file mode 100644
index 00000000..31d97b83
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Preview.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Preview.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Unix.Preview.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Compatible.cs
new file mode 100644
index 00000000..31d97b83
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Compatible.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Compatible.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Compatible.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Default.cs
new file mode 100644
index 00000000..31d97b83
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Default.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Default.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Default.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Latest.cs
new file mode 100644
index 00000000..31d97b83
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Latest.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Latest.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Latest.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Preview.cs
new file mode 100644
index 00000000..31d97b83
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Preview.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Preview.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceStarTest.Windows.Preview.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Compatible.cs
new file mode 100644
index 00000000..31d97b83
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Compatible.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Compatible.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Compatible.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Default.cs
new file mode 100644
index 00000000..31d97b83
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Default.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Default.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Default.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Latest.cs
new file mode 100644
index 00000000..31d97b83
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Latest.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Latest.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Latest.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Preview.cs
new file mode 100644
index 00000000..31d97b83
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Preview.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Preview.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Unix.Preview.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Compatible.cs
new file mode 100644
index 00000000..31d97b83
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Compatible.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Compatible.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Compatible.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Default.cs
new file mode 100644
index 00000000..31d97b83
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Default.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Default.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Default.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Latest.cs
new file mode 100644
index 00000000..31d97b83
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Latest.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Latest.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Latest.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Preview.cs
new file mode 100644
index 00000000..31d97b83
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Preview.cs
@@ -0,0 +1,14 @@
+using static ClangSharp.Test.MyEnum1;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value1 = 1,
+ }
+
+ public enum MyEnum2
+ {
+ MyEnum2_Value1 = MyEnum1_Value1,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Preview.xml
new file mode 100644
index 00000000..2accd163
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithNamespaceTest.Windows.Preview.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ int
+
+ int
+
+ 1
+
+
+
+
+ int
+
+ int
+
+ MyEnum1_Value1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Compatible.cs
new file mode 100644
index 00000000..2cd4bd84
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public const uint MyEnum1_Value1 = 1;
+
+ [NativeTypeName("const int")]
+ public const int MyEnum2_Value1 = (int)(MyEnum1_Value1) + 1;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Compatible.xml
new file mode 100644
index 00000000..b8274035
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Compatible.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ uint
+
+ 1
+
+
+
+ int
+
+ (int)(MyEnum1_Value1) + 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Default.cs
new file mode 100644
index 00000000..2cd4bd84
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public const uint MyEnum1_Value1 = 1;
+
+ [NativeTypeName("const int")]
+ public const int MyEnum2_Value1 = (int)(MyEnum1_Value1) + 1;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Default.xml
new file mode 100644
index 00000000..b8274035
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Default.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ uint
+
+ 1
+
+
+
+ int
+
+ (int)(MyEnum1_Value1) + 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Latest.cs
new file mode 100644
index 00000000..2cd4bd84
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public const uint MyEnum1_Value1 = 1;
+
+ [NativeTypeName("const int")]
+ public const int MyEnum2_Value1 = (int)(MyEnum1_Value1) + 1;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Latest.xml
new file mode 100644
index 00000000..b8274035
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Latest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ uint
+
+ 1
+
+
+
+ int
+
+ (int)(MyEnum1_Value1) + 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Preview.cs
new file mode 100644
index 00000000..2cd4bd84
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public const uint MyEnum1_Value1 = 1;
+
+ [NativeTypeName("const int")]
+ public const int MyEnum2_Value1 = (int)(MyEnum1_Value1) + 1;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Preview.xml
new file mode 100644
index 00000000..b8274035
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Unix.Preview.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ uint
+
+ 1
+
+
+
+ int
+
+ (int)(MyEnum1_Value1) + 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Compatible.cs
new file mode 100644
index 00000000..640829ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public const int MyEnum1_Value1 = 1;
+
+ [NativeTypeName("const int")]
+ public const int MyEnum2_Value1 = (int)(MyEnum1_Value1) + 1;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Compatible.xml
new file mode 100644
index 00000000..725ba5ff
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Compatible.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ 1
+
+
+
+ int
+
+ (int)(MyEnum1_Value1) + 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Default.cs
new file mode 100644
index 00000000..640829ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public const int MyEnum1_Value1 = 1;
+
+ [NativeTypeName("const int")]
+ public const int MyEnum2_Value1 = (int)(MyEnum1_Value1) + 1;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Default.xml
new file mode 100644
index 00000000..725ba5ff
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Default.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ 1
+
+
+
+ int
+
+ (int)(MyEnum1_Value1) + 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Latest.cs
new file mode 100644
index 00000000..640829ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public const int MyEnum1_Value1 = 1;
+
+ [NativeTypeName("const int")]
+ public const int MyEnum2_Value1 = (int)(MyEnum1_Value1) + 1;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Latest.xml
new file mode 100644
index 00000000..725ba5ff
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Latest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ 1
+
+
+
+ int
+
+ (int)(MyEnum1_Value1) + 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Preview.cs
new file mode 100644
index 00000000..640829ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public const int MyEnum1_Value1 = 1;
+
+ [NativeTypeName("const int")]
+ public const int MyEnum2_Value1 = (int)(MyEnum1_Value1) + 1;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Preview.xml
new file mode 100644
index 00000000..725ba5ff
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithReferenceToAnonymousEnumEnumeratorTest.Windows.Preview.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ 1
+
+
+
+ int
+
+ (int)(MyEnum1_Value1) + 1
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Compatible.cs
new file mode 100644
index 00000000..de571b8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2 = 0x80000000,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Compatible.xml
new file mode 100644
index 00000000..af859643
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Compatible.xml
@@ -0,0 +1,20 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+ 0x80000000
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Default.cs
new file mode 100644
index 00000000..de571b8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2 = 0x80000000,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Default.xml
new file mode 100644
index 00000000..af859643
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Default.xml
@@ -0,0 +1,20 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+ 0x80000000
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Latest.cs
new file mode 100644
index 00000000..de571b8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2 = 0x80000000,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Latest.xml
new file mode 100644
index 00000000..af859643
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Latest.xml
@@ -0,0 +1,20 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+ 0x80000000
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Preview.cs
new file mode 100644
index 00000000..de571b8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2 = 0x80000000,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Preview.xml
new file mode 100644
index 00000000..af859643
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Unix.Preview.xml
@@ -0,0 +1,20 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+ 0x80000000
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Compatible.cs
new file mode 100644
index 00000000..de571b8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2 = 0x80000000,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Compatible.xml
new file mode 100644
index 00000000..af859643
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Compatible.xml
@@ -0,0 +1,20 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+ 0x80000000
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Default.cs
new file mode 100644
index 00000000..de571b8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2 = 0x80000000,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Default.xml
new file mode 100644
index 00000000..af859643
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Default.xml
@@ -0,0 +1,20 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+ 0x80000000
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Latest.cs
new file mode 100644
index 00000000..de571b8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2 = 0x80000000,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Latest.xml
new file mode 100644
index 00000000..af859643
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Latest.xml
@@ -0,0 +1,20 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+ 0x80000000
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Preview.cs
new file mode 100644
index 00000000..de571b8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2 = 0x80000000,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Preview.xml
new file mode 100644
index 00000000..af859643
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeAndicitConversionTest.Windows.Preview.xml
@@ -0,0 +1,20 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+ 0x80000000
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Compatible.cs
new file mode 100644
index 00000000..659d112c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Compatible.cs
@@ -0,0 +1,13 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value0,
+ }
+
+ [NativeTypeName("int")]
+ public enum MyEnum2 : uint
+ {
+ MyEnum2_Value0,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Compatible.xml
new file mode 100644
index 00000000..002e9e19
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+
+ uint
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Default.cs
new file mode 100644
index 00000000..659d112c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Default.cs
@@ -0,0 +1,13 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value0,
+ }
+
+ [NativeTypeName("int")]
+ public enum MyEnum2 : uint
+ {
+ MyEnum2_Value0,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Default.xml
new file mode 100644
index 00000000..002e9e19
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+
+ uint
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Latest.cs
new file mode 100644
index 00000000..659d112c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Latest.cs
@@ -0,0 +1,13 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value0,
+ }
+
+ [NativeTypeName("int")]
+ public enum MyEnum2 : uint
+ {
+ MyEnum2_Value0,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Latest.xml
new file mode 100644
index 00000000..002e9e19
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+
+ uint
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Preview.cs
new file mode 100644
index 00000000..659d112c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Preview.cs
@@ -0,0 +1,13 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value0,
+ }
+
+ [NativeTypeName("int")]
+ public enum MyEnum2 : uint
+ {
+ MyEnum2_Value0,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Preview.xml
new file mode 100644
index 00000000..002e9e19
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+
+ uint
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Compatible.cs
new file mode 100644
index 00000000..659d112c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Compatible.cs
@@ -0,0 +1,13 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value0,
+ }
+
+ [NativeTypeName("int")]
+ public enum MyEnum2 : uint
+ {
+ MyEnum2_Value0,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Compatible.xml
new file mode 100644
index 00000000..002e9e19
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+
+ uint
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Default.cs
new file mode 100644
index 00000000..659d112c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Default.cs
@@ -0,0 +1,13 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value0,
+ }
+
+ [NativeTypeName("int")]
+ public enum MyEnum2 : uint
+ {
+ MyEnum2_Value0,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Default.xml
new file mode 100644
index 00000000..002e9e19
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+
+ uint
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Latest.cs
new file mode 100644
index 00000000..659d112c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Latest.cs
@@ -0,0 +1,13 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value0,
+ }
+
+ [NativeTypeName("int")]
+ public enum MyEnum2 : uint
+ {
+ MyEnum2_Value0,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Latest.xml
new file mode 100644
index 00000000..002e9e19
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+
+ uint
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Preview.cs
new file mode 100644
index 00000000..659d112c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Preview.cs
@@ -0,0 +1,13 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum1
+ {
+ MyEnum1_Value0,
+ }
+
+ [NativeTypeName("int")]
+ public enum MyEnum2 : uint
+ {
+ MyEnum2_Value0,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Preview.xml
new file mode 100644
index 00000000..002e9e19
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarOverrideTest.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ int
+
+ int
+
+
+
+ uint
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Compatible.cs
new file mode 100644
index 00000000..5bd310a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Compatible.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum1 : uint
+ {
+ MyEnum1_Value0,
+ }
+
+ [NativeTypeName("int")]
+ public enum MyEnum2 : uint
+ {
+ MyEnum2_Value0,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Compatible.xml
new file mode 100644
index 00000000..ef4accb4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+
+ uint
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Default.cs
new file mode 100644
index 00000000..5bd310a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Default.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum1 : uint
+ {
+ MyEnum1_Value0,
+ }
+
+ [NativeTypeName("int")]
+ public enum MyEnum2 : uint
+ {
+ MyEnum2_Value0,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Default.xml
new file mode 100644
index 00000000..ef4accb4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+
+ uint
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Latest.cs
new file mode 100644
index 00000000..5bd310a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Latest.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum1 : uint
+ {
+ MyEnum1_Value0,
+ }
+
+ [NativeTypeName("int")]
+ public enum MyEnum2 : uint
+ {
+ MyEnum2_Value0,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Latest.xml
new file mode 100644
index 00000000..ef4accb4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+
+ uint
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Preview.cs
new file mode 100644
index 00000000..5bd310a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Preview.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum1 : uint
+ {
+ MyEnum1_Value0,
+ }
+
+ [NativeTypeName("int")]
+ public enum MyEnum2 : uint
+ {
+ MyEnum2_Value0,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Preview.xml
new file mode 100644
index 00000000..ef4accb4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+
+ uint
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Compatible.cs
new file mode 100644
index 00000000..5bd310a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Compatible.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum1 : uint
+ {
+ MyEnum1_Value0,
+ }
+
+ [NativeTypeName("int")]
+ public enum MyEnum2 : uint
+ {
+ MyEnum2_Value0,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Compatible.xml
new file mode 100644
index 00000000..ef4accb4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+
+ uint
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Default.cs
new file mode 100644
index 00000000..5bd310a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Default.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum1 : uint
+ {
+ MyEnum1_Value0,
+ }
+
+ [NativeTypeName("int")]
+ public enum MyEnum2 : uint
+ {
+ MyEnum2_Value0,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Default.xml
new file mode 100644
index 00000000..ef4accb4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+
+ uint
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Latest.cs
new file mode 100644
index 00000000..5bd310a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Latest.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum1 : uint
+ {
+ MyEnum1_Value0,
+ }
+
+ [NativeTypeName("int")]
+ public enum MyEnum2 : uint
+ {
+ MyEnum2_Value0,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Latest.xml
new file mode 100644
index 00000000..ef4accb4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+
+ uint
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Preview.cs
new file mode 100644
index 00000000..5bd310a7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Preview.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum1 : uint
+ {
+ MyEnum1_Value0,
+ }
+
+ [NativeTypeName("int")]
+ public enum MyEnum2 : uint
+ {
+ MyEnum2_Value0,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Preview.xml
new file mode 100644
index 00000000..ef4accb4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeStarTest.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+
+ uint
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Compatible.cs
new file mode 100644
index 00000000..092a29dc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Compatible.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Default.cs
new file mode 100644
index 00000000..092a29dc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Default.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Latest.cs
new file mode 100644
index 00000000..092a29dc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Latest.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Preview.cs
new file mode 100644
index 00000000..092a29dc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Preview.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Compatible.cs
new file mode 100644
index 00000000..092a29dc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Compatible.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Default.cs
new file mode 100644
index 00000000..092a29dc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Default.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Latest.cs
new file mode 100644
index 00000000..092a29dc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Latest.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Preview.cs
new file mode 100644
index 00000000..092a29dc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ [NativeTypeName("int")]
+ public enum MyEnum : uint
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Preview.xml
new file mode 100644
index 00000000..005e362f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithTypeTest.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ uint
+
+ uint
+
+
+ uint
+
+
+ uint
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Compatible.cs
new file mode 100644
index 00000000..403d87a8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Compatible.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2 = unchecked((int)(0x80000000)),
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Compatible.xml
new file mode 100644
index 00000000..e662876c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Compatible.xml
@@ -0,0 +1,27 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ 0x80000000
+
+
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Default.cs
new file mode 100644
index 00000000..403d87a8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Default.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2 = unchecked((int)(0x80000000)),
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Default.xml
new file mode 100644
index 00000000..e662876c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Default.xml
@@ -0,0 +1,27 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ 0x80000000
+
+
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Latest.cs
new file mode 100644
index 00000000..403d87a8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Latest.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2 = unchecked((int)(0x80000000)),
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Latest.xml
new file mode 100644
index 00000000..e662876c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Latest.xml
@@ -0,0 +1,27 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ 0x80000000
+
+
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Preview.cs
new file mode 100644
index 00000000..403d87a8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Preview.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2 = unchecked((int)(0x80000000)),
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Preview.xml
new file mode 100644
index 00000000..e662876c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Unix.Preview.xml
@@ -0,0 +1,27 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ 0x80000000
+
+
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Compatible.cs
new file mode 100644
index 00000000..403d87a8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Compatible.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2 = unchecked((int)(0x80000000)),
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Compatible.xml
new file mode 100644
index 00000000..e662876c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Compatible.xml
@@ -0,0 +1,27 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ 0x80000000
+
+
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Default.cs
new file mode 100644
index 00000000..403d87a8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Default.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2 = unchecked((int)(0x80000000)),
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Default.xml
new file mode 100644
index 00000000..e662876c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Default.xml
@@ -0,0 +1,27 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ 0x80000000
+
+
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Latest.cs
new file mode 100644
index 00000000..403d87a8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Latest.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2 = unchecked((int)(0x80000000)),
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Latest.xml
new file mode 100644
index 00000000..e662876c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Latest.xml
@@ -0,0 +1,27 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ 0x80000000
+
+
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Preview.cs
new file mode 100644
index 00000000..403d87a8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Preview.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2 = unchecked((int)(0x80000000)),
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Preview.xml
new file mode 100644
index 00000000..e662876c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/EnumDeclarationTest.WithicitConversionTest.Windows.Preview.xml
@@ -0,0 +1,27 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+ int
+
+ 0x80000000
+
+
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Compatible.cs
new file mode 100644
index 00000000..3cfe222f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Compatible.cs
@@ -0,0 +1,38 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [StructLayout(LayoutKind.Explicit)]
+ public unsafe partial struct MyUnion
+ {
+ [FieldOffset(0)]
+ [NativeTypeName("__AnonymousRecord_ClangUnsavedFile_L3_C5")]
+ public _Anonymous_e__Struct Anonymous;
+
+ public ref int a
+ {
+ get
+ {
+ fixed (_Anonymous_e__Struct* pField = &Anonymous)
+ {
+ return ref pField->a;
+ }
+ }
+ }
+
+ public partial struct _Anonymous_e__Struct
+ {
+ public int a;
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ MyUnion myUnion = new MyUnion();
+
+ myUnion.Anonymous.a = 10;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Compatible.xml
new file mode 100644
index 00000000..06828316
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Compatible.xml
@@ -0,0 +1,32 @@
+
+
+
+
+
+ _Anonymous_e__Struct
+
+
+ ref int
+
+ fixed (_Anonymous_e__Struct* pField = &Anonymous)
+ {
+ return ref pField->a;
+ }
+
+
+
+
+ int
+
+
+
+
+
+ void
+ MyUnion myUnion = new MyUnion();
+
+ myUnion.Anonymous.a = 10;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Default.cs
new file mode 100644
index 00000000..89cbd7c6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Default.cs
@@ -0,0 +1,35 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [StructLayout(LayoutKind.Explicit)]
+ public partial struct MyUnion
+ {
+ [FieldOffset(0)]
+ [NativeTypeName("__AnonymousRecord_ClangUnsavedFile_L3_C5")]
+ public _Anonymous_e__Struct Anonymous;
+
+ public ref int a
+ {
+ get
+ {
+ return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.a, 1));
+ }
+ }
+
+ public partial struct _Anonymous_e__Struct
+ {
+ public int a;
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ MyUnion myUnion = new MyUnion();
+
+ myUnion.Anonymous.a = 10;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Default.xml
new file mode 100644
index 00000000..9fc2bc3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Default.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+ _Anonymous_e__Struct
+
+
+ ref int
+
+ return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.a, 1));
+
+
+
+
+ int
+
+
+
+
+
+ void
+ MyUnion myUnion = new MyUnion();
+
+ myUnion.Anonymous.a = 10;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Latest.cs
new file mode 100644
index 00000000..d0cd9021
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Latest.cs
@@ -0,0 +1,37 @@
+using System.Diagnostics.CodeAnalysis;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [StructLayout(LayoutKind.Explicit)]
+ public partial struct MyUnion
+ {
+ [FieldOffset(0)]
+ [NativeTypeName("__AnonymousRecord_ClangUnsavedFile_L3_C5")]
+ public _Anonymous_e__Struct Anonymous;
+
+ [UnscopedRef]
+ public ref int a
+ {
+ get
+ {
+ return ref Anonymous.a;
+ }
+ }
+
+ public partial struct _Anonymous_e__Struct
+ {
+ public int a;
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ MyUnion myUnion = new MyUnion();
+
+ myUnion.Anonymous.a = 10;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Latest.xml
new file mode 100644
index 00000000..dabae223
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Latest.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+ _Anonymous_e__Struct
+
+
+ ref int
+
+ return ref Anonymous.a;
+
+
+
+
+ int
+
+
+
+
+
+ void
+ MyUnion myUnion = new MyUnion();
+
+ myUnion.Anonymous.a = 10;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Preview.cs
new file mode 100644
index 00000000..d0cd9021
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Preview.cs
@@ -0,0 +1,37 @@
+using System.Diagnostics.CodeAnalysis;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [StructLayout(LayoutKind.Explicit)]
+ public partial struct MyUnion
+ {
+ [FieldOffset(0)]
+ [NativeTypeName("__AnonymousRecord_ClangUnsavedFile_L3_C5")]
+ public _Anonymous_e__Struct Anonymous;
+
+ [UnscopedRef]
+ public ref int a
+ {
+ get
+ {
+ return ref Anonymous.a;
+ }
+ }
+
+ public partial struct _Anonymous_e__Struct
+ {
+ public int a;
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ MyUnion myUnion = new MyUnion();
+
+ myUnion.Anonymous.a = 10;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Preview.xml
new file mode 100644
index 00000000..dabae223
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Unix.Preview.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+ _Anonymous_e__Struct
+
+
+ ref int
+
+ return ref Anonymous.a;
+
+
+
+
+ int
+
+
+
+
+
+ void
+ MyUnion myUnion = new MyUnion();
+
+ myUnion.Anonymous.a = 10;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Compatible.cs
new file mode 100644
index 00000000..3cfe222f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Compatible.cs
@@ -0,0 +1,38 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [StructLayout(LayoutKind.Explicit)]
+ public unsafe partial struct MyUnion
+ {
+ [FieldOffset(0)]
+ [NativeTypeName("__AnonymousRecord_ClangUnsavedFile_L3_C5")]
+ public _Anonymous_e__Struct Anonymous;
+
+ public ref int a
+ {
+ get
+ {
+ fixed (_Anonymous_e__Struct* pField = &Anonymous)
+ {
+ return ref pField->a;
+ }
+ }
+ }
+
+ public partial struct _Anonymous_e__Struct
+ {
+ public int a;
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ MyUnion myUnion = new MyUnion();
+
+ myUnion.Anonymous.a = 10;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Compatible.xml
new file mode 100644
index 00000000..06828316
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Compatible.xml
@@ -0,0 +1,32 @@
+
+
+
+
+
+ _Anonymous_e__Struct
+
+
+ ref int
+
+ fixed (_Anonymous_e__Struct* pField = &Anonymous)
+ {
+ return ref pField->a;
+ }
+
+
+
+
+ int
+
+
+
+
+
+ void
+ MyUnion myUnion = new MyUnion();
+
+ myUnion.Anonymous.a = 10;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Default.cs
new file mode 100644
index 00000000..89cbd7c6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Default.cs
@@ -0,0 +1,35 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [StructLayout(LayoutKind.Explicit)]
+ public partial struct MyUnion
+ {
+ [FieldOffset(0)]
+ [NativeTypeName("__AnonymousRecord_ClangUnsavedFile_L3_C5")]
+ public _Anonymous_e__Struct Anonymous;
+
+ public ref int a
+ {
+ get
+ {
+ return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.a, 1));
+ }
+ }
+
+ public partial struct _Anonymous_e__Struct
+ {
+ public int a;
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ MyUnion myUnion = new MyUnion();
+
+ myUnion.Anonymous.a = 10;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Default.xml
new file mode 100644
index 00000000..9fc2bc3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Default.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+ _Anonymous_e__Struct
+
+
+ ref int
+
+ return ref MemoryMarshal.GetReference(MemoryMarshal.CreateSpan(ref Anonymous.a, 1));
+
+
+
+
+ int
+
+
+
+
+
+ void
+ MyUnion myUnion = new MyUnion();
+
+ myUnion.Anonymous.a = 10;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Latest.cs
new file mode 100644
index 00000000..d0cd9021
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Latest.cs
@@ -0,0 +1,37 @@
+using System.Diagnostics.CodeAnalysis;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [StructLayout(LayoutKind.Explicit)]
+ public partial struct MyUnion
+ {
+ [FieldOffset(0)]
+ [NativeTypeName("__AnonymousRecord_ClangUnsavedFile_L3_C5")]
+ public _Anonymous_e__Struct Anonymous;
+
+ [UnscopedRef]
+ public ref int a
+ {
+ get
+ {
+ return ref Anonymous.a;
+ }
+ }
+
+ public partial struct _Anonymous_e__Struct
+ {
+ public int a;
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ MyUnion myUnion = new MyUnion();
+
+ myUnion.Anonymous.a = 10;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Latest.xml
new file mode 100644
index 00000000..dabae223
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Latest.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+ _Anonymous_e__Struct
+
+
+ ref int
+
+ return ref Anonymous.a;
+
+
+
+
+ int
+
+
+
+
+
+ void
+ MyUnion myUnion = new MyUnion();
+
+ myUnion.Anonymous.a = 10;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Preview.cs
new file mode 100644
index 00000000..d0cd9021
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Preview.cs
@@ -0,0 +1,37 @@
+using System.Diagnostics.CodeAnalysis;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [StructLayout(LayoutKind.Explicit)]
+ public partial struct MyUnion
+ {
+ [FieldOffset(0)]
+ [NativeTypeName("__AnonymousRecord_ClangUnsavedFile_L3_C5")]
+ public _Anonymous_e__Struct Anonymous;
+
+ [UnscopedRef]
+ public ref int a
+ {
+ get
+ {
+ return ref Anonymous.a;
+ }
+ }
+
+ public partial struct _Anonymous_e__Struct
+ {
+ public int a;
+ }
+ }
+
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ MyUnion myUnion = new MyUnion();
+
+ myUnion.Anonymous.a = 10;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Preview.xml
new file mode 100644
index 00000000..dabae223
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.AccessUnionMemberTest.Windows.Preview.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+ _Anonymous_e__Struct
+
+
+ ref int
+
+ return ref Anonymous.a;
+
+
+
+
+ int
+
+
+
+
+
+ void
+ MyUnion myUnion = new MyUnion();
+
+ myUnion.Anonymous.a = 10;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Compatible.cs
new file mode 100644
index 00000000..ad4fe443
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction(int* pData, int index)
+ {
+ return pData[index];
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Compatible.xml
new file mode 100644
index 00000000..90c7ba99
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int*
+
+
+ int
+
+ return pData[index];
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Default.cs
new file mode 100644
index 00000000..ad4fe443
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction(int* pData, int index)
+ {
+ return pData[index];
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Default.xml
new file mode 100644
index 00000000..90c7ba99
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int*
+
+
+ int
+
+ return pData[index];
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Latest.cs
new file mode 100644
index 00000000..ad4fe443
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction(int* pData, int index)
+ {
+ return pData[index];
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Latest.xml
new file mode 100644
index 00000000..90c7ba99
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int*
+
+
+ int
+
+ return pData[index];
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Preview.cs
new file mode 100644
index 00000000..ad4fe443
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction(int* pData, int index)
+ {
+ return pData[index];
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Preview.xml
new file mode 100644
index 00000000..90c7ba99
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int*
+
+
+ int
+
+ return pData[index];
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Compatible.cs
new file mode 100644
index 00000000..ad4fe443
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction(int* pData, int index)
+ {
+ return pData[index];
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Compatible.xml
new file mode 100644
index 00000000..90c7ba99
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int*
+
+
+ int
+
+ return pData[index];
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Default.cs
new file mode 100644
index 00000000..ad4fe443
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction(int* pData, int index)
+ {
+ return pData[index];
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Default.xml
new file mode 100644
index 00000000..90c7ba99
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int*
+
+
+ int
+
+ return pData[index];
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Latest.cs
new file mode 100644
index 00000000..ad4fe443
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction(int* pData, int index)
+ {
+ return pData[index];
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Latest.xml
new file mode 100644
index 00000000..90c7ba99
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int*
+
+
+ int
+
+ return pData[index];
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Preview.cs
new file mode 100644
index 00000000..ad4fe443
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction(int* pData, int index)
+ {
+ return pData[index];
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Preview.xml
new file mode 100644
index 00000000..90c7ba99
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ArraySubscriptTest.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int*
+
+
+ int
+
+ return pData[index];
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Compatible.cs
new file mode 100644
index 00000000..68762ff7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Compatible.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Compatible.xml
new file mode 100644
index 00000000..9d7e1575
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Default.cs
new file mode 100644
index 00000000..68762ff7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Default.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Default.xml
new file mode 100644
index 00000000..9d7e1575
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Latest.cs
new file mode 100644
index 00000000..68762ff7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Latest.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Latest.xml
new file mode 100644
index 00000000..9d7e1575
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Preview.cs
new file mode 100644
index 00000000..68762ff7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Preview.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Preview.xml
new file mode 100644
index 00000000..9d7e1575
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Unix.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Compatible.cs
new file mode 100644
index 00000000..68762ff7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Compatible.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Compatible.xml
new file mode 100644
index 00000000..9d7e1575
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Default.cs
new file mode 100644
index 00000000..68762ff7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Default.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Default.xml
new file mode 100644
index 00000000..9d7e1575
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Latest.cs
new file mode 100644
index 00000000..68762ff7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Latest.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Latest.xml
new file mode 100644
index 00000000..9d7e1575
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Preview.cs
new file mode 100644
index 00000000..68762ff7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Preview.cs
@@ -0,0 +1,9 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Preview.xml
new file mode 100644
index 00000000..9d7e1575
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BasicTest.Windows.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Compatible.cs
new file mode 100644
index 00000000..4da2b4bb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x % y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Compatible.xml
new file mode 100644
index 00000000..044ceb7a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x % y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Default.cs
new file mode 100644
index 00000000..4da2b4bb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x % y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Default.xml
new file mode 100644
index 00000000..044ceb7a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x % y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Latest.cs
new file mode 100644
index 00000000..4da2b4bb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x % y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Latest.xml
new file mode 100644
index 00000000..044ceb7a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x % y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Preview.cs
new file mode 100644
index 00000000..4da2b4bb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x % y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Preview.xml
new file mode 100644
index 00000000..044ceb7a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x % y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Compatible.cs
new file mode 100644
index 00000000..4da2b4bb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x % y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Compatible.xml
new file mode 100644
index 00000000..044ceb7a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x % y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Default.cs
new file mode 100644
index 00000000..4da2b4bb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x % y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Default.xml
new file mode 100644
index 00000000..044ceb7a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x % y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Latest.cs
new file mode 100644
index 00000000..4da2b4bb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x % y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Latest.xml
new file mode 100644
index 00000000..044ceb7a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x % y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Preview.cs
new file mode 100644
index 00000000..4da2b4bb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x % y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Preview.xml
new file mode 100644
index 00000000..044ceb7a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x % y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Compatible.cs
new file mode 100644
index 00000000..72e36e91
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x %= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Compatible.xml
new file mode 100644
index 00000000..a9b11f35
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x %= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Default.cs
new file mode 100644
index 00000000..72e36e91
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x %= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Default.xml
new file mode 100644
index 00000000..a9b11f35
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x %= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Latest.cs
new file mode 100644
index 00000000..72e36e91
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x %= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Latest.xml
new file mode 100644
index 00000000..a9b11f35
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x %= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Preview.cs
new file mode 100644
index 00000000..72e36e91
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x %= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Preview.xml
new file mode 100644
index 00000000..a9b11f35
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x %= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Compatible.cs
new file mode 100644
index 00000000..72e36e91
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x %= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Compatible.xml
new file mode 100644
index 00000000..a9b11f35
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x %= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Default.cs
new file mode 100644
index 00000000..72e36e91
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x %= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Default.xml
new file mode 100644
index 00000000..a9b11f35
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x %= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Latest.cs
new file mode 100644
index 00000000..72e36e91
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x %= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Latest.xml
new file mode 100644
index 00000000..a9b11f35
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x %= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Preview.cs
new file mode 100644
index 00000000..72e36e91
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x %= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Preview.xml
new file mode 100644
index 00000000..a9b11f35
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.%=.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x %= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Compatible.cs
new file mode 100644
index 00000000..47d5830e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x & y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Compatible.xml
new file mode 100644
index 00000000..8a8285f3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x & y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Default.cs
new file mode 100644
index 00000000..47d5830e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x & y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Default.xml
new file mode 100644
index 00000000..8a8285f3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x & y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Latest.cs
new file mode 100644
index 00000000..47d5830e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x & y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Latest.xml
new file mode 100644
index 00000000..8a8285f3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x & y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Preview.cs
new file mode 100644
index 00000000..47d5830e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x & y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Preview.xml
new file mode 100644
index 00000000..8a8285f3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x & y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Compatible.cs
new file mode 100644
index 00000000..47d5830e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x & y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Compatible.xml
new file mode 100644
index 00000000..8a8285f3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x & y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Default.cs
new file mode 100644
index 00000000..47d5830e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x & y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Default.xml
new file mode 100644
index 00000000..8a8285f3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x & y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Latest.cs
new file mode 100644
index 00000000..47d5830e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x & y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Latest.xml
new file mode 100644
index 00000000..8a8285f3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x & y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Preview.cs
new file mode 100644
index 00000000..47d5830e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x & y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Preview.xml
new file mode 100644
index 00000000..8a8285f3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x & y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Compatible.cs
new file mode 100644
index 00000000..d786db3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x &= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Compatible.xml
new file mode 100644
index 00000000..6a3d3ef9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x &= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Default.cs
new file mode 100644
index 00000000..d786db3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x &= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Default.xml
new file mode 100644
index 00000000..6a3d3ef9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x &= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Latest.cs
new file mode 100644
index 00000000..d786db3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x &= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Latest.xml
new file mode 100644
index 00000000..6a3d3ef9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x &= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Preview.cs
new file mode 100644
index 00000000..d786db3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x &= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Preview.xml
new file mode 100644
index 00000000..6a3d3ef9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x &= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Compatible.cs
new file mode 100644
index 00000000..d786db3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x &= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Compatible.xml
new file mode 100644
index 00000000..6a3d3ef9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x &= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Default.cs
new file mode 100644
index 00000000..d786db3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x &= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Default.xml
new file mode 100644
index 00000000..6a3d3ef9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x &= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Latest.cs
new file mode 100644
index 00000000..d786db3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x &= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Latest.xml
new file mode 100644
index 00000000..6a3d3ef9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x &= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Preview.cs
new file mode 100644
index 00000000..d786db3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x &= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Preview.xml
new file mode 100644
index 00000000..6a3d3ef9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.&=.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x &= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Compatible.cs
new file mode 100644
index 00000000..d2a42be1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x + y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Compatible.xml
new file mode 100644
index 00000000..2e3943b9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x + y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Default.cs
new file mode 100644
index 00000000..d2a42be1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x + y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Default.xml
new file mode 100644
index 00000000..2e3943b9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x + y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Latest.cs
new file mode 100644
index 00000000..d2a42be1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x + y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Latest.xml
new file mode 100644
index 00000000..2e3943b9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x + y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Preview.cs
new file mode 100644
index 00000000..d2a42be1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x + y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Preview.xml
new file mode 100644
index 00000000..2e3943b9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x + y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Compatible.cs
new file mode 100644
index 00000000..d2a42be1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x + y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Compatible.xml
new file mode 100644
index 00000000..2e3943b9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x + y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Default.cs
new file mode 100644
index 00000000..d2a42be1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x + y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Default.xml
new file mode 100644
index 00000000..2e3943b9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x + y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Latest.cs
new file mode 100644
index 00000000..d2a42be1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x + y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Latest.xml
new file mode 100644
index 00000000..2e3943b9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x + y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Preview.cs
new file mode 100644
index 00000000..d2a42be1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x + y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Preview.xml
new file mode 100644
index 00000000..2e3943b9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x + y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Compatible.cs
new file mode 100644
index 00000000..0fa06060
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x += y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Compatible.xml
new file mode 100644
index 00000000..e590b55c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x += y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Default.cs
new file mode 100644
index 00000000..0fa06060
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x += y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Default.xml
new file mode 100644
index 00000000..e590b55c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x += y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Latest.cs
new file mode 100644
index 00000000..0fa06060
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x += y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Latest.xml
new file mode 100644
index 00000000..e590b55c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x += y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Preview.cs
new file mode 100644
index 00000000..0fa06060
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x += y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Preview.xml
new file mode 100644
index 00000000..e590b55c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x += y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Compatible.cs
new file mode 100644
index 00000000..0fa06060
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x += y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Compatible.xml
new file mode 100644
index 00000000..e590b55c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x += y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Default.cs
new file mode 100644
index 00000000..0fa06060
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x += y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Default.xml
new file mode 100644
index 00000000..e590b55c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x += y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Latest.cs
new file mode 100644
index 00000000..0fa06060
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x += y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Latest.xml
new file mode 100644
index 00000000..e590b55c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x += y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Preview.cs
new file mode 100644
index 00000000..0fa06060
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x += y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Preview.xml
new file mode 100644
index 00000000..e590b55c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.+=.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x += y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Compatible.cs
new file mode 100644
index 00000000..5bcdd615
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x - y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Compatible.xml
new file mode 100644
index 00000000..0794d0e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x - y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Default.cs
new file mode 100644
index 00000000..5bcdd615
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x - y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Default.xml
new file mode 100644
index 00000000..0794d0e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x - y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Latest.cs
new file mode 100644
index 00000000..5bcdd615
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x - y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Latest.xml
new file mode 100644
index 00000000..0794d0e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x - y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Preview.cs
new file mode 100644
index 00000000..5bcdd615
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x - y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Preview.xml
new file mode 100644
index 00000000..0794d0e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x - y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Compatible.cs
new file mode 100644
index 00000000..5bcdd615
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x - y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Compatible.xml
new file mode 100644
index 00000000..0794d0e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x - y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Default.cs
new file mode 100644
index 00000000..5bcdd615
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x - y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Default.xml
new file mode 100644
index 00000000..0794d0e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x - y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Latest.cs
new file mode 100644
index 00000000..5bcdd615
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x - y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Latest.xml
new file mode 100644
index 00000000..0794d0e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x - y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Preview.cs
new file mode 100644
index 00000000..5bcdd615
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x - y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Preview.xml
new file mode 100644
index 00000000..0794d0e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x - y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Compatible.cs
new file mode 100644
index 00000000..8d80a1cc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x -= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Compatible.xml
new file mode 100644
index 00000000..24ee63cc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x -= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Default.cs
new file mode 100644
index 00000000..8d80a1cc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x -= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Default.xml
new file mode 100644
index 00000000..24ee63cc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x -= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Latest.cs
new file mode 100644
index 00000000..8d80a1cc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x -= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Latest.xml
new file mode 100644
index 00000000..24ee63cc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x -= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Preview.cs
new file mode 100644
index 00000000..8d80a1cc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x -= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Preview.xml
new file mode 100644
index 00000000..24ee63cc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x -= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Compatible.cs
new file mode 100644
index 00000000..8d80a1cc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x -= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Compatible.xml
new file mode 100644
index 00000000..24ee63cc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x -= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Default.cs
new file mode 100644
index 00000000..8d80a1cc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x -= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Default.xml
new file mode 100644
index 00000000..24ee63cc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x -= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Latest.cs
new file mode 100644
index 00000000..8d80a1cc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x -= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Latest.xml
new file mode 100644
index 00000000..24ee63cc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x -= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Preview.cs
new file mode 100644
index 00000000..8d80a1cc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x -= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Preview.xml
new file mode 100644
index 00000000..24ee63cc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.-=.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x -= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Compatible.cs
new file mode 100644
index 00000000..c3cd2099
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x = y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Compatible.xml
new file mode 100644
index 00000000..d6b5fa3a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x = y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Default.cs
new file mode 100644
index 00000000..c3cd2099
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x = y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Default.xml
new file mode 100644
index 00000000..d6b5fa3a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x = y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Latest.cs
new file mode 100644
index 00000000..c3cd2099
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x = y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Latest.xml
new file mode 100644
index 00000000..d6b5fa3a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x = y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Preview.cs
new file mode 100644
index 00000000..c3cd2099
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x = y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Preview.xml
new file mode 100644
index 00000000..d6b5fa3a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x = y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Compatible.cs
new file mode 100644
index 00000000..c3cd2099
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x = y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Compatible.xml
new file mode 100644
index 00000000..d6b5fa3a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x = y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Default.cs
new file mode 100644
index 00000000..c3cd2099
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x = y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Default.xml
new file mode 100644
index 00000000..d6b5fa3a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x = y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Latest.cs
new file mode 100644
index 00000000..c3cd2099
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x = y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Latest.xml
new file mode 100644
index 00000000..d6b5fa3a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x = y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Preview.cs
new file mode 100644
index 00000000..c3cd2099
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x = y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Preview.xml
new file mode 100644
index 00000000..d6b5fa3a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.=.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x = y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Compatible.cs
new file mode 100644
index 00000000..c5fe7077
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x ^ y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Compatible.xml
new file mode 100644
index 00000000..e8245844
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x ^ y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Default.cs
new file mode 100644
index 00000000..c5fe7077
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x ^ y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Default.xml
new file mode 100644
index 00000000..e8245844
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x ^ y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Latest.cs
new file mode 100644
index 00000000..c5fe7077
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x ^ y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Latest.xml
new file mode 100644
index 00000000..e8245844
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x ^ y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Preview.cs
new file mode 100644
index 00000000..c5fe7077
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x ^ y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Preview.xml
new file mode 100644
index 00000000..e8245844
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x ^ y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Compatible.cs
new file mode 100644
index 00000000..c5fe7077
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x ^ y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Compatible.xml
new file mode 100644
index 00000000..e8245844
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x ^ y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Default.cs
new file mode 100644
index 00000000..c5fe7077
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x ^ y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Default.xml
new file mode 100644
index 00000000..e8245844
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x ^ y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Latest.cs
new file mode 100644
index 00000000..c5fe7077
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x ^ y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Latest.xml
new file mode 100644
index 00000000..e8245844
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x ^ y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Preview.cs
new file mode 100644
index 00000000..c5fe7077
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x ^ y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Preview.xml
new file mode 100644
index 00000000..e8245844
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x ^ y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Compatible.cs
new file mode 100644
index 00000000..3195189b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x ^= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Compatible.xml
new file mode 100644
index 00000000..65188504
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x ^= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Default.cs
new file mode 100644
index 00000000..3195189b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x ^= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Default.xml
new file mode 100644
index 00000000..65188504
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x ^= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Latest.cs
new file mode 100644
index 00000000..3195189b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x ^= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Latest.xml
new file mode 100644
index 00000000..65188504
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x ^= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Preview.cs
new file mode 100644
index 00000000..3195189b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x ^= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Preview.xml
new file mode 100644
index 00000000..65188504
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x ^= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Compatible.cs
new file mode 100644
index 00000000..3195189b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x ^= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Compatible.xml
new file mode 100644
index 00000000..65188504
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x ^= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Default.cs
new file mode 100644
index 00000000..3195189b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x ^= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Default.xml
new file mode 100644
index 00000000..65188504
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x ^= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Latest.cs
new file mode 100644
index 00000000..3195189b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x ^= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Latest.xml
new file mode 100644
index 00000000..65188504
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x ^= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Preview.cs
new file mode 100644
index 00000000..3195189b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x ^= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Preview.xml
new file mode 100644
index 00000000..65188504
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.^=.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x ^= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Compatible.cs
new file mode 100644
index 00000000..785c82cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x * y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Compatible.xml
new file mode 100644
index 00000000..ae471b1b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x * y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Default.cs
new file mode 100644
index 00000000..785c82cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x * y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Default.xml
new file mode 100644
index 00000000..ae471b1b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x * y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Latest.cs
new file mode 100644
index 00000000..785c82cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x * y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Latest.xml
new file mode 100644
index 00000000..ae471b1b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x * y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Preview.cs
new file mode 100644
index 00000000..785c82cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x * y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Preview.xml
new file mode 100644
index 00000000..ae471b1b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x * y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Compatible.cs
new file mode 100644
index 00000000..785c82cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x * y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Compatible.xml
new file mode 100644
index 00000000..ae471b1b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x * y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Default.cs
new file mode 100644
index 00000000..785c82cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x * y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Default.xml
new file mode 100644
index 00000000..ae471b1b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x * y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Latest.cs
new file mode 100644
index 00000000..785c82cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x * y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Latest.xml
new file mode 100644
index 00000000..ae471b1b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x * y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Preview.cs
new file mode 100644
index 00000000..785c82cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x * y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Preview.xml
new file mode 100644
index 00000000..ae471b1b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x * y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Compatible.cs
new file mode 100644
index 00000000..62a03115
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x *= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Compatible.xml
new file mode 100644
index 00000000..0d2ba5c0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x *= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Default.cs
new file mode 100644
index 00000000..62a03115
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x *= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Default.xml
new file mode 100644
index 00000000..0d2ba5c0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x *= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Latest.cs
new file mode 100644
index 00000000..62a03115
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x *= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Latest.xml
new file mode 100644
index 00000000..0d2ba5c0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x *= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Preview.cs
new file mode 100644
index 00000000..62a03115
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x *= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Preview.xml
new file mode 100644
index 00000000..0d2ba5c0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x *= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Compatible.cs
new file mode 100644
index 00000000..62a03115
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x *= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Compatible.xml
new file mode 100644
index 00000000..0d2ba5c0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x *= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Default.cs
new file mode 100644
index 00000000..62a03115
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x *= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Default.xml
new file mode 100644
index 00000000..0d2ba5c0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x *= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Latest.cs
new file mode 100644
index 00000000..62a03115
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x *= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Latest.xml
new file mode 100644
index 00000000..0d2ba5c0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x *= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Preview.cs
new file mode 100644
index 00000000..62a03115
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x *= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Preview.xml
new file mode 100644
index 00000000..0d2ba5c0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__ast=.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x *= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Compatible.cs
new file mode 100644
index 00000000..1375e4bd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x / y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Compatible.xml
new file mode 100644
index 00000000..a13997be
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x / y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Default.cs
new file mode 100644
index 00000000..1375e4bd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x / y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Default.xml
new file mode 100644
index 00000000..a13997be
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x / y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Latest.cs
new file mode 100644
index 00000000..1375e4bd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x / y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Latest.xml
new file mode 100644
index 00000000..a13997be
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x / y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Preview.cs
new file mode 100644
index 00000000..1375e4bd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x / y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Preview.xml
new file mode 100644
index 00000000..a13997be
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x / y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Compatible.cs
new file mode 100644
index 00000000..1375e4bd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x / y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Compatible.xml
new file mode 100644
index 00000000..a13997be
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x / y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Default.cs
new file mode 100644
index 00000000..1375e4bd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x / y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Default.xml
new file mode 100644
index 00000000..a13997be
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x / y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Latest.cs
new file mode 100644
index 00000000..1375e4bd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x / y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Latest.xml
new file mode 100644
index 00000000..a13997be
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x / y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Preview.cs
new file mode 100644
index 00000000..1375e4bd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x / y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Preview.xml
new file mode 100644
index 00000000..a13997be
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x / y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Compatible.cs
new file mode 100644
index 00000000..34e7b975
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x /= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Compatible.xml
new file mode 100644
index 00000000..0422c4ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x /= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Default.cs
new file mode 100644
index 00000000..34e7b975
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x /= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Default.xml
new file mode 100644
index 00000000..0422c4ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x /= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Latest.cs
new file mode 100644
index 00000000..34e7b975
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x /= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Latest.xml
new file mode 100644
index 00000000..0422c4ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x /= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Preview.cs
new file mode 100644
index 00000000..34e7b975
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x /= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Preview.xml
new file mode 100644
index 00000000..0422c4ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x /= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Compatible.cs
new file mode 100644
index 00000000..34e7b975
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x /= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Compatible.xml
new file mode 100644
index 00000000..0422c4ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x /= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Default.cs
new file mode 100644
index 00000000..34e7b975
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x /= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Default.xml
new file mode 100644
index 00000000..0422c4ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x /= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Latest.cs
new file mode 100644
index 00000000..34e7b975
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x /= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Latest.xml
new file mode 100644
index 00000000..0422c4ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x /= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Preview.cs
new file mode 100644
index 00000000..34e7b975
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x /= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Preview.xml
new file mode 100644
index 00000000..0422c4ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__fs=.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x /= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Compatible.cs
new file mode 100644
index 00000000..7bd9af47
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x >> y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Compatible.xml
new file mode 100644
index 00000000..61ead84c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x >> y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Default.cs
new file mode 100644
index 00000000..7bd9af47
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x >> y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Default.xml
new file mode 100644
index 00000000..61ead84c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x >> y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Latest.cs
new file mode 100644
index 00000000..7bd9af47
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x >> y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Latest.xml
new file mode 100644
index 00000000..61ead84c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x >> y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Preview.cs
new file mode 100644
index 00000000..7bd9af47
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x >> y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Preview.xml
new file mode 100644
index 00000000..61ead84c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x >> y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Compatible.cs
new file mode 100644
index 00000000..7bd9af47
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x >> y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Compatible.xml
new file mode 100644
index 00000000..61ead84c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x >> y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Default.cs
new file mode 100644
index 00000000..7bd9af47
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x >> y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Default.xml
new file mode 100644
index 00000000..61ead84c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x >> y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Latest.cs
new file mode 100644
index 00000000..7bd9af47
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x >> y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Latest.xml
new file mode 100644
index 00000000..61ead84c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x >> y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Preview.cs
new file mode 100644
index 00000000..7bd9af47
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x >> y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Preview.xml
new file mode 100644
index 00000000..61ead84c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x >> y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Compatible.cs
new file mode 100644
index 00000000..114dfe94
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x >>= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Compatible.xml
new file mode 100644
index 00000000..c8e42a8d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x >>= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Default.cs
new file mode 100644
index 00000000..114dfe94
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x >>= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Default.xml
new file mode 100644
index 00000000..c8e42a8d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x >>= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Latest.cs
new file mode 100644
index 00000000..114dfe94
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x >>= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Latest.xml
new file mode 100644
index 00000000..c8e42a8d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x >>= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Preview.cs
new file mode 100644
index 00000000..114dfe94
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x >>= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Preview.xml
new file mode 100644
index 00000000..c8e42a8d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x >>= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Compatible.cs
new file mode 100644
index 00000000..114dfe94
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x >>= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Compatible.xml
new file mode 100644
index 00000000..c8e42a8d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x >>= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Default.cs
new file mode 100644
index 00000000..114dfe94
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x >>= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Default.xml
new file mode 100644
index 00000000..c8e42a8d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x >>= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Latest.cs
new file mode 100644
index 00000000..114dfe94
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x >>= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Latest.xml
new file mode 100644
index 00000000..c8e42a8d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x >>= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Preview.cs
new file mode 100644
index 00000000..114dfe94
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x >>= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Preview.xml
new file mode 100644
index 00000000..c8e42a8d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__gt__gt=.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x >>= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Compatible.cs
new file mode 100644
index 00000000..15b8b654
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x << y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Compatible.xml
new file mode 100644
index 00000000..45707086
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x << y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Default.cs
new file mode 100644
index 00000000..15b8b654
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x << y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Default.xml
new file mode 100644
index 00000000..45707086
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x << y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Latest.cs
new file mode 100644
index 00000000..15b8b654
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x << y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Latest.xml
new file mode 100644
index 00000000..45707086
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x << y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Preview.cs
new file mode 100644
index 00000000..15b8b654
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x << y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Preview.xml
new file mode 100644
index 00000000..45707086
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x << y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Compatible.cs
new file mode 100644
index 00000000..15b8b654
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x << y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Compatible.xml
new file mode 100644
index 00000000..45707086
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x << y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Default.cs
new file mode 100644
index 00000000..15b8b654
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x << y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Default.xml
new file mode 100644
index 00000000..45707086
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x << y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Latest.cs
new file mode 100644
index 00000000..15b8b654
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x << y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Latest.xml
new file mode 100644
index 00000000..45707086
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x << y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Preview.cs
new file mode 100644
index 00000000..15b8b654
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x << y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Preview.xml
new file mode 100644
index 00000000..45707086
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x << y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Compatible.cs
new file mode 100644
index 00000000..78a80adf
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x <<= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Compatible.xml
new file mode 100644
index 00000000..819a82cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x <<= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Default.cs
new file mode 100644
index 00000000..78a80adf
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x <<= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Default.xml
new file mode 100644
index 00000000..819a82cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x <<= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Latest.cs
new file mode 100644
index 00000000..78a80adf
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x <<= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Latest.xml
new file mode 100644
index 00000000..819a82cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x <<= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Preview.cs
new file mode 100644
index 00000000..78a80adf
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x <<= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Preview.xml
new file mode 100644
index 00000000..819a82cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x <<= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Compatible.cs
new file mode 100644
index 00000000..78a80adf
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x <<= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Compatible.xml
new file mode 100644
index 00000000..819a82cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x <<= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Default.cs
new file mode 100644
index 00000000..78a80adf
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x <<= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Default.xml
new file mode 100644
index 00000000..819a82cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x <<= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Latest.cs
new file mode 100644
index 00000000..78a80adf
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x <<= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Latest.xml
new file mode 100644
index 00000000..819a82cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x <<= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Preview.cs
new file mode 100644
index 00000000..78a80adf
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x <<= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Preview.xml
new file mode 100644
index 00000000..819a82cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__lt__lt=.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x <<= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Compatible.cs
new file mode 100644
index 00000000..866b64a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x | y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Compatible.xml
new file mode 100644
index 00000000..421fa861
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x | y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Default.cs
new file mode 100644
index 00000000..866b64a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x | y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Default.xml
new file mode 100644
index 00000000..421fa861
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x | y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Latest.cs
new file mode 100644
index 00000000..866b64a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x | y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Latest.xml
new file mode 100644
index 00000000..421fa861
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x | y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Preview.cs
new file mode 100644
index 00000000..866b64a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x | y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Preview.xml
new file mode 100644
index 00000000..421fa861
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x | y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Compatible.cs
new file mode 100644
index 00000000..866b64a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x | y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Compatible.xml
new file mode 100644
index 00000000..421fa861
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x | y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Default.cs
new file mode 100644
index 00000000..866b64a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x | y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Default.xml
new file mode 100644
index 00000000..421fa861
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x | y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Latest.cs
new file mode 100644
index 00000000..866b64a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x | y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Latest.xml
new file mode 100644
index 00000000..421fa861
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x | y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Preview.cs
new file mode 100644
index 00000000..866b64a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x | y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Preview.xml
new file mode 100644
index 00000000..421fa861
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x | y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Compatible.cs
new file mode 100644
index 00000000..c719c190
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x |= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Compatible.xml
new file mode 100644
index 00000000..77484443
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x |= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Default.cs
new file mode 100644
index 00000000..c719c190
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x |= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Default.xml
new file mode 100644
index 00000000..77484443
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x |= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Latest.cs
new file mode 100644
index 00000000..c719c190
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x |= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Latest.xml
new file mode 100644
index 00000000..77484443
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x |= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Preview.cs
new file mode 100644
index 00000000..c719c190
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x |= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Preview.xml
new file mode 100644
index 00000000..77484443
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x |= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Compatible.cs
new file mode 100644
index 00000000..c719c190
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x |= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Compatible.xml
new file mode 100644
index 00000000..77484443
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x |= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Default.cs
new file mode 100644
index 00000000..c719c190
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x |= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Default.xml
new file mode 100644
index 00000000..77484443
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x |= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Latest.cs
new file mode 100644
index 00000000..c719c190
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x |= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Latest.xml
new file mode 100644
index 00000000..77484443
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x |= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Preview.cs
new file mode 100644
index 00000000..c719c190
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int x, int y)
+ {
+ return x |= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Preview.xml
new file mode 100644
index 00000000..77484443
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBasicTest.__vl=.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+ return x |= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Compatible.cs
new file mode 100644
index 00000000..94478e5d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool x, bool y)
+ {
+ return x && y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Compatible.xml
new file mode 100644
index 00000000..cee04571
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ bool
+
+
+ bool
+
+ return x && y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Default.cs
new file mode 100644
index 00000000..94478e5d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool x, bool y)
+ {
+ return x && y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Default.xml
new file mode 100644
index 00000000..cee04571
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ bool
+
+
+ bool
+
+ return x && y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Latest.cs
new file mode 100644
index 00000000..94478e5d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool x, bool y)
+ {
+ return x && y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Latest.xml
new file mode 100644
index 00000000..cee04571
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ bool
+
+
+ bool
+
+ return x && y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Preview.cs
new file mode 100644
index 00000000..94478e5d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool x, bool y)
+ {
+ return x && y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Preview.xml
new file mode 100644
index 00000000..cee04571
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ bool
+
+
+ bool
+
+ return x && y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Compatible.cs
new file mode 100644
index 00000000..94478e5d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool x, bool y)
+ {
+ return x && y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Compatible.xml
new file mode 100644
index 00000000..cee04571
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ bool
+
+
+ bool
+
+ return x && y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Default.cs
new file mode 100644
index 00000000..94478e5d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool x, bool y)
+ {
+ return x && y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Default.xml
new file mode 100644
index 00000000..cee04571
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ bool
+
+
+ bool
+
+ return x && y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Latest.cs
new file mode 100644
index 00000000..94478e5d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool x, bool y)
+ {
+ return x && y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Latest.xml
new file mode 100644
index 00000000..cee04571
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ bool
+
+
+ bool
+
+ return x && y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Preview.cs
new file mode 100644
index 00000000..94478e5d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool x, bool y)
+ {
+ return x && y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Preview.xml
new file mode 100644
index 00000000..cee04571
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.&&.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ bool
+
+
+ bool
+
+ return x && y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Compatible.cs
new file mode 100644
index 00000000..800c8d60
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool x, bool y)
+ {
+ return x || y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Compatible.xml
new file mode 100644
index 00000000..6ff94797
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ bool
+
+
+ bool
+
+ return x || y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Default.cs
new file mode 100644
index 00000000..800c8d60
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool x, bool y)
+ {
+ return x || y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Default.xml
new file mode 100644
index 00000000..6ff94797
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ bool
+
+
+ bool
+
+ return x || y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Latest.cs
new file mode 100644
index 00000000..800c8d60
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool x, bool y)
+ {
+ return x || y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Latest.xml
new file mode 100644
index 00000000..6ff94797
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ bool
+
+
+ bool
+
+ return x || y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Preview.cs
new file mode 100644
index 00000000..800c8d60
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool x, bool y)
+ {
+ return x || y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Preview.xml
new file mode 100644
index 00000000..6ff94797
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ bool
+
+
+ bool
+
+ return x || y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Compatible.cs
new file mode 100644
index 00000000..800c8d60
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool x, bool y)
+ {
+ return x || y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Compatible.xml
new file mode 100644
index 00000000..6ff94797
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ bool
+
+
+ bool
+
+ return x || y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Default.cs
new file mode 100644
index 00000000..800c8d60
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool x, bool y)
+ {
+ return x || y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Default.xml
new file mode 100644
index 00000000..6ff94797
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ bool
+
+
+ bool
+
+ return x || y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Latest.cs
new file mode 100644
index 00000000..800c8d60
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool x, bool y)
+ {
+ return x || y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Latest.xml
new file mode 100644
index 00000000..6ff94797
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ bool
+
+
+ bool
+
+ return x || y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Preview.cs
new file mode 100644
index 00000000..800c8d60
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool x, bool y)
+ {
+ return x || y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Preview.xml
new file mode 100644
index 00000000..6ff94797
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorBooleanTest.__vl__vl.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ bool
+
+
+ bool
+
+ return x || y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Compatible.cs
new file mode 100644
index 00000000..297eb581
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x != y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Compatible.xml
new file mode 100644
index 00000000..81dac47a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x != y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Default.cs
new file mode 100644
index 00000000..297eb581
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x != y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Default.xml
new file mode 100644
index 00000000..81dac47a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x != y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Latest.cs
new file mode 100644
index 00000000..297eb581
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x != y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Latest.xml
new file mode 100644
index 00000000..81dac47a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x != y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Preview.cs
new file mode 100644
index 00000000..297eb581
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x != y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Preview.xml
new file mode 100644
index 00000000..81dac47a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x != y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Compatible.cs
new file mode 100644
index 00000000..297eb581
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x != y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Compatible.xml
new file mode 100644
index 00000000..81dac47a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x != y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Default.cs
new file mode 100644
index 00000000..297eb581
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x != y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Default.xml
new file mode 100644
index 00000000..81dac47a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x != y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Latest.cs
new file mode 100644
index 00000000..297eb581
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x != y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Latest.xml
new file mode 100644
index 00000000..81dac47a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x != y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Preview.cs
new file mode 100644
index 00000000..297eb581
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x != y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Preview.xml
new file mode 100644
index 00000000..81dac47a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.!=.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x != y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Compatible.cs
new file mode 100644
index 00000000..0c94c881
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x == y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Compatible.xml
new file mode 100644
index 00000000..bf0ba6e7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x == y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Default.cs
new file mode 100644
index 00000000..0c94c881
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x == y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Default.xml
new file mode 100644
index 00000000..bf0ba6e7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x == y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Latest.cs
new file mode 100644
index 00000000..0c94c881
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x == y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Latest.xml
new file mode 100644
index 00000000..bf0ba6e7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x == y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Preview.cs
new file mode 100644
index 00000000..0c94c881
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x == y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Preview.xml
new file mode 100644
index 00000000..bf0ba6e7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x == y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Compatible.cs
new file mode 100644
index 00000000..0c94c881
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x == y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Compatible.xml
new file mode 100644
index 00000000..bf0ba6e7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x == y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Default.cs
new file mode 100644
index 00000000..0c94c881
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x == y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Default.xml
new file mode 100644
index 00000000..bf0ba6e7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x == y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Latest.cs
new file mode 100644
index 00000000..0c94c881
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x == y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Latest.xml
new file mode 100644
index 00000000..bf0ba6e7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x == y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Preview.cs
new file mode 100644
index 00000000..0c94c881
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x == y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Preview.xml
new file mode 100644
index 00000000..bf0ba6e7
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.==.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x == y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Compatible.cs
new file mode 100644
index 00000000..2ab09b4e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x > y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Compatible.xml
new file mode 100644
index 00000000..441d9508
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x > y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Default.cs
new file mode 100644
index 00000000..2ab09b4e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x > y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Default.xml
new file mode 100644
index 00000000..441d9508
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x > y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Latest.cs
new file mode 100644
index 00000000..2ab09b4e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x > y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Latest.xml
new file mode 100644
index 00000000..441d9508
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x > y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Preview.cs
new file mode 100644
index 00000000..2ab09b4e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x > y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Preview.xml
new file mode 100644
index 00000000..441d9508
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x > y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Compatible.cs
new file mode 100644
index 00000000..2ab09b4e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x > y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Compatible.xml
new file mode 100644
index 00000000..441d9508
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x > y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Default.cs
new file mode 100644
index 00000000..2ab09b4e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x > y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Default.xml
new file mode 100644
index 00000000..441d9508
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x > y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Latest.cs
new file mode 100644
index 00000000..2ab09b4e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x > y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Latest.xml
new file mode 100644
index 00000000..441d9508
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x > y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Preview.cs
new file mode 100644
index 00000000..2ab09b4e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x > y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Preview.xml
new file mode 100644
index 00000000..441d9508
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x > y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Compatible.cs
new file mode 100644
index 00000000..7dcf453f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x >= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Compatible.xml
new file mode 100644
index 00000000..de135332
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x >= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Default.cs
new file mode 100644
index 00000000..7dcf453f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x >= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Default.xml
new file mode 100644
index 00000000..de135332
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x >= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Latest.cs
new file mode 100644
index 00000000..7dcf453f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x >= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Latest.xml
new file mode 100644
index 00000000..de135332
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x >= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Preview.cs
new file mode 100644
index 00000000..7dcf453f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x >= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Preview.xml
new file mode 100644
index 00000000..de135332
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x >= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Compatible.cs
new file mode 100644
index 00000000..7dcf453f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x >= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Compatible.xml
new file mode 100644
index 00000000..de135332
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x >= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Default.cs
new file mode 100644
index 00000000..7dcf453f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x >= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Default.xml
new file mode 100644
index 00000000..de135332
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x >= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Latest.cs
new file mode 100644
index 00000000..7dcf453f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x >= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Latest.xml
new file mode 100644
index 00000000..de135332
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x >= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Preview.cs
new file mode 100644
index 00000000..7dcf453f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x >= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Preview.xml
new file mode 100644
index 00000000..de135332
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__gt=.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x >= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Compatible.cs
new file mode 100644
index 00000000..8a62045c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x < y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Compatible.xml
new file mode 100644
index 00000000..f69caa39
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x < y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Default.cs
new file mode 100644
index 00000000..8a62045c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x < y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Default.xml
new file mode 100644
index 00000000..f69caa39
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x < y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Latest.cs
new file mode 100644
index 00000000..8a62045c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x < y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Latest.xml
new file mode 100644
index 00000000..f69caa39
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x < y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Preview.cs
new file mode 100644
index 00000000..8a62045c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x < y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Preview.xml
new file mode 100644
index 00000000..f69caa39
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x < y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Compatible.cs
new file mode 100644
index 00000000..8a62045c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x < y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Compatible.xml
new file mode 100644
index 00000000..f69caa39
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x < y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Default.cs
new file mode 100644
index 00000000..8a62045c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x < y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Default.xml
new file mode 100644
index 00000000..f69caa39
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x < y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Latest.cs
new file mode 100644
index 00000000..8a62045c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x < y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Latest.xml
new file mode 100644
index 00000000..f69caa39
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x < y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Preview.cs
new file mode 100644
index 00000000..8a62045c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x < y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Preview.xml
new file mode 100644
index 00000000..f69caa39
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x < y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Compatible.cs
new file mode 100644
index 00000000..a2e5eab8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x <= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Compatible.xml
new file mode 100644
index 00000000..7ae8c808
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x <= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Default.cs
new file mode 100644
index 00000000..a2e5eab8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x <= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Default.xml
new file mode 100644
index 00000000..7ae8c808
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x <= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Latest.cs
new file mode 100644
index 00000000..a2e5eab8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x <= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Latest.xml
new file mode 100644
index 00000000..7ae8c808
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x <= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Preview.cs
new file mode 100644
index 00000000..a2e5eab8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x <= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Preview.xml
new file mode 100644
index 00000000..7ae8c808
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Unix.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x <= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Compatible.cs
new file mode 100644
index 00000000..a2e5eab8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x <= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Compatible.xml
new file mode 100644
index 00000000..7ae8c808
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Compatible.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x <= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Default.cs
new file mode 100644
index 00000000..a2e5eab8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x <= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Default.xml
new file mode 100644
index 00000000..7ae8c808
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Default.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x <= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Latest.cs
new file mode 100644
index 00000000..a2e5eab8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x <= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Latest.xml
new file mode 100644
index 00000000..7ae8c808
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Latest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x <= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Preview.cs
new file mode 100644
index 00000000..a2e5eab8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(int x, int y)
+ {
+ return x <= y;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Preview.xml
new file mode 100644
index 00000000..7ae8c808
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BinaryOperatorCompareTest.__lt=.Windows.Preview.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ bool
+
+ int
+
+
+ int
+
+ return x <= y;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Compatible.cs
new file mode 100644
index 00000000..210a914f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Compatible.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ while (true)
+ {
+ break;
+ }
+
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Compatible.xml
new file mode 100644
index 00000000..b074d282
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Compatible.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ int
+
+ while (true)
+ {
+ break;
+ }
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Default.cs
new file mode 100644
index 00000000..210a914f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Default.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ while (true)
+ {
+ break;
+ }
+
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Default.xml
new file mode 100644
index 00000000..b074d282
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Default.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ int
+
+ while (true)
+ {
+ break;
+ }
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Latest.cs
new file mode 100644
index 00000000..210a914f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Latest.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ while (true)
+ {
+ break;
+ }
+
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Latest.xml
new file mode 100644
index 00000000..b074d282
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Latest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ int
+
+ while (true)
+ {
+ break;
+ }
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Preview.cs
new file mode 100644
index 00000000..210a914f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Preview.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ while (true)
+ {
+ break;
+ }
+
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Preview.xml
new file mode 100644
index 00000000..b074d282
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Unix.Preview.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ int
+
+ while (true)
+ {
+ break;
+ }
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Compatible.cs
new file mode 100644
index 00000000..210a914f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Compatible.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ while (true)
+ {
+ break;
+ }
+
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Compatible.xml
new file mode 100644
index 00000000..b074d282
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Compatible.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ int
+
+ while (true)
+ {
+ break;
+ }
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Default.cs
new file mode 100644
index 00000000..210a914f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Default.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ while (true)
+ {
+ break;
+ }
+
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Default.xml
new file mode 100644
index 00000000..b074d282
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Default.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ int
+
+ while (true)
+ {
+ break;
+ }
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Latest.cs
new file mode 100644
index 00000000..210a914f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Latest.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ while (true)
+ {
+ break;
+ }
+
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Latest.xml
new file mode 100644
index 00000000..b074d282
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Latest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ int
+
+ while (true)
+ {
+ break;
+ }
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Preview.cs
new file mode 100644
index 00000000..210a914f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Preview.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ while (true)
+ {
+ break;
+ }
+
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Preview.xml
new file mode 100644
index 00000000..b074d282
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.BreakTest.Windows.Preview.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ int
+
+ while (true)
+ {
+ break;
+ }
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Compatible.cs
new file mode 100644
index 00000000..10bb563b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(float input)
+ {
+ return (int)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Compatible.xml
new file mode 100644
index 00000000..ea58cedb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ float
+
+ return (int)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Default.cs
new file mode 100644
index 00000000..10bb563b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(float input)
+ {
+ return (int)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Default.xml
new file mode 100644
index 00000000..ea58cedb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ float
+
+ return (int)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Latest.cs
new file mode 100644
index 00000000..10bb563b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(float input)
+ {
+ return (int)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Latest.xml
new file mode 100644
index 00000000..ea58cedb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ float
+
+ return (int)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Preview.cs
new file mode 100644
index 00000000..10bb563b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(float input)
+ {
+ return (int)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Preview.xml
new file mode 100644
index 00000000..ea58cedb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Unix.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ float
+
+ return (int)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Compatible.cs
new file mode 100644
index 00000000..10bb563b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(float input)
+ {
+ return (int)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Compatible.xml
new file mode 100644
index 00000000..ea58cedb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ float
+
+ return (int)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Default.cs
new file mode 100644
index 00000000..10bb563b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(float input)
+ {
+ return (int)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Default.xml
new file mode 100644
index 00000000..ea58cedb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ float
+
+ return (int)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Latest.cs
new file mode 100644
index 00000000..10bb563b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(float input)
+ {
+ return (int)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Latest.xml
new file mode 100644
index 00000000..ea58cedb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ float
+
+ return (int)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Preview.cs
new file mode 100644
index 00000000..10bb563b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(float input)
+ {
+ return (int)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Preview.xml
new file mode 100644
index 00000000..ea58cedb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CStyleFunctionalCastTest.Windows.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ float
+
+ return (int)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Compatible.cs
new file mode 100644
index 00000000..edfc6a34
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Compatible.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyCalledFunction()
+ {
+ }
+
+ public static void MyFunction()
+ {
+ MyCalledFunction();
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Compatible.xml
new file mode 100644
index 00000000..6f914d24
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Compatible.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ void
+
+
+
+ void
+ MyCalledFunction();
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Default.cs
new file mode 100644
index 00000000..edfc6a34
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Default.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyCalledFunction()
+ {
+ }
+
+ public static void MyFunction()
+ {
+ MyCalledFunction();
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Default.xml
new file mode 100644
index 00000000..6f914d24
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Default.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ void
+
+
+
+ void
+ MyCalledFunction();
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Latest.cs
new file mode 100644
index 00000000..edfc6a34
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Latest.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyCalledFunction()
+ {
+ }
+
+ public static void MyFunction()
+ {
+ MyCalledFunction();
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Latest.xml
new file mode 100644
index 00000000..6f914d24
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Latest.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ void
+
+
+
+ void
+ MyCalledFunction();
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Preview.cs
new file mode 100644
index 00000000..edfc6a34
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Preview.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyCalledFunction()
+ {
+ }
+
+ public static void MyFunction()
+ {
+ MyCalledFunction();
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Preview.xml
new file mode 100644
index 00000000..6f914d24
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Unix.Preview.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ void
+
+
+
+ void
+ MyCalledFunction();
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Compatible.cs
new file mode 100644
index 00000000..edfc6a34
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Compatible.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyCalledFunction()
+ {
+ }
+
+ public static void MyFunction()
+ {
+ MyCalledFunction();
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Compatible.xml
new file mode 100644
index 00000000..6f914d24
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Compatible.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ void
+
+
+
+ void
+ MyCalledFunction();
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Default.cs
new file mode 100644
index 00000000..edfc6a34
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Default.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyCalledFunction()
+ {
+ }
+
+ public static void MyFunction()
+ {
+ MyCalledFunction();
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Default.xml
new file mode 100644
index 00000000..6f914d24
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Default.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ void
+
+
+
+ void
+ MyCalledFunction();
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Latest.cs
new file mode 100644
index 00000000..edfc6a34
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Latest.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyCalledFunction()
+ {
+ }
+
+ public static void MyFunction()
+ {
+ MyCalledFunction();
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Latest.xml
new file mode 100644
index 00000000..6f914d24
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Latest.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ void
+
+
+
+ void
+ MyCalledFunction();
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Preview.cs
new file mode 100644
index 00000000..edfc6a34
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Preview.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyCalledFunction()
+ {
+ }
+
+ public static void MyFunction()
+ {
+ MyCalledFunction();
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Preview.xml
new file mode 100644
index 00000000..6f914d24
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionTest.Windows.Preview.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ void
+
+
+
+ void
+ MyCalledFunction();
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Compatible.cs
new file mode 100644
index 00000000..915731c1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Compatible.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyCalledFunction(int x, int y)
+ {
+ }
+
+ public static void MyFunction()
+ {
+ MyCalledFunction(0, 1);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Compatible.xml
new file mode 100644
index 00000000..9f1ccbf0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Compatible.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+
+
+ void
+ MyCalledFunction(0, 1);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Default.cs
new file mode 100644
index 00000000..915731c1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Default.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyCalledFunction(int x, int y)
+ {
+ }
+
+ public static void MyFunction()
+ {
+ MyCalledFunction(0, 1);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Default.xml
new file mode 100644
index 00000000..9f1ccbf0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Default.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+
+
+ void
+ MyCalledFunction(0, 1);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Latest.cs
new file mode 100644
index 00000000..915731c1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Latest.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyCalledFunction(int x, int y)
+ {
+ }
+
+ public static void MyFunction()
+ {
+ MyCalledFunction(0, 1);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Latest.xml
new file mode 100644
index 00000000..9f1ccbf0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Latest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+
+
+ void
+ MyCalledFunction(0, 1);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Preview.cs
new file mode 100644
index 00000000..915731c1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Preview.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyCalledFunction(int x, int y)
+ {
+ }
+
+ public static void MyFunction()
+ {
+ MyCalledFunction(0, 1);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Preview.xml
new file mode 100644
index 00000000..9f1ccbf0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Unix.Preview.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+
+
+ void
+ MyCalledFunction(0, 1);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Compatible.cs
new file mode 100644
index 00000000..915731c1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Compatible.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyCalledFunction(int x, int y)
+ {
+ }
+
+ public static void MyFunction()
+ {
+ MyCalledFunction(0, 1);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Compatible.xml
new file mode 100644
index 00000000..9f1ccbf0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Compatible.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+
+
+ void
+ MyCalledFunction(0, 1);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Default.cs
new file mode 100644
index 00000000..915731c1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Default.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyCalledFunction(int x, int y)
+ {
+ }
+
+ public static void MyFunction()
+ {
+ MyCalledFunction(0, 1);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Default.xml
new file mode 100644
index 00000000..9f1ccbf0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Default.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+
+
+ void
+ MyCalledFunction(0, 1);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Latest.cs
new file mode 100644
index 00000000..915731c1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Latest.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyCalledFunction(int x, int y)
+ {
+ }
+
+ public static void MyFunction()
+ {
+ MyCalledFunction(0, 1);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Latest.xml
new file mode 100644
index 00000000..9f1ccbf0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Latest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+
+
+ void
+ MyCalledFunction(0, 1);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Preview.cs
new file mode 100644
index 00000000..915731c1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Preview.cs
@@ -0,0 +1,14 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyCalledFunction(int x, int y)
+ {
+ }
+
+ public static void MyFunction()
+ {
+ MyCalledFunction(0, 1);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Preview.xml
new file mode 100644
index 00000000..9f1ccbf0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CallFunctionWithArgsTest.Windows.Preview.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ void
+
+ int
+
+
+ int
+
+
+
+
+ void
+ MyCalledFunction(0, 1);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Compatible.cs
new file mode 100644
index 00000000..5455198a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Compatible.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 2:
+ case 3:
+ {
+ return 5;
+ }
+ }
+
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Compatible.xml
new file mode 100644
index 00000000..ec4d7978
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Compatible.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 2:
+ case 3:
+ {
+ return 5;
+ }
+ }
+
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Default.cs
new file mode 100644
index 00000000..5455198a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Default.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 2:
+ case 3:
+ {
+ return 5;
+ }
+ }
+
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Default.xml
new file mode 100644
index 00000000..ec4d7978
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Default.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 2:
+ case 3:
+ {
+ return 5;
+ }
+ }
+
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Latest.cs
new file mode 100644
index 00000000..5455198a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Latest.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 2:
+ case 3:
+ {
+ return 5;
+ }
+ }
+
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Latest.xml
new file mode 100644
index 00000000..ec4d7978
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Latest.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 2:
+ case 3:
+ {
+ return 5;
+ }
+ }
+
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Preview.cs
new file mode 100644
index 00000000..5455198a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Preview.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 2:
+ case 3:
+ {
+ return 5;
+ }
+ }
+
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Preview.xml
new file mode 100644
index 00000000..ec4d7978
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Unix.Preview.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 2:
+ case 3:
+ {
+ return 5;
+ }
+ }
+
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Compatible.cs
new file mode 100644
index 00000000..5455198a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Compatible.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 2:
+ case 3:
+ {
+ return 5;
+ }
+ }
+
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Compatible.xml
new file mode 100644
index 00000000..ec4d7978
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Compatible.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 2:
+ case 3:
+ {
+ return 5;
+ }
+ }
+
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Default.cs
new file mode 100644
index 00000000..5455198a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Default.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 2:
+ case 3:
+ {
+ return 5;
+ }
+ }
+
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Default.xml
new file mode 100644
index 00000000..ec4d7978
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Default.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 2:
+ case 3:
+ {
+ return 5;
+ }
+ }
+
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Latest.cs
new file mode 100644
index 00000000..5455198a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Latest.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 2:
+ case 3:
+ {
+ return 5;
+ }
+ }
+
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Latest.xml
new file mode 100644
index 00000000..ec4d7978
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Latest.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 2:
+ case 3:
+ {
+ return 5;
+ }
+ }
+
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Preview.cs
new file mode 100644
index 00000000..5455198a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Preview.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 2:
+ case 3:
+ {
+ return 5;
+ }
+ }
+
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Preview.xml
new file mode 100644
index 00000000..ec4d7978
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseNoCompoundTest.Windows.Preview.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 2:
+ case 3:
+ {
+ return 5;
+ }
+ }
+
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Compatible.cs
new file mode 100644
index 00000000..8bfda41b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Compatible.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 1:
+ case 2:
+ {
+ return 3;
+ }
+ }
+
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Compatible.xml
new file mode 100644
index 00000000..213f7724
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Compatible.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 1:
+ case 2:
+ {
+ return 3;
+ }
+ }
+
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Default.cs
new file mode 100644
index 00000000..8bfda41b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Default.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 1:
+ case 2:
+ {
+ return 3;
+ }
+ }
+
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Default.xml
new file mode 100644
index 00000000..213f7724
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Default.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 1:
+ case 2:
+ {
+ return 3;
+ }
+ }
+
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Latest.cs
new file mode 100644
index 00000000..8bfda41b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Latest.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 1:
+ case 2:
+ {
+ return 3;
+ }
+ }
+
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Latest.xml
new file mode 100644
index 00000000..213f7724
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Latest.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 1:
+ case 2:
+ {
+ return 3;
+ }
+ }
+
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Preview.cs
new file mode 100644
index 00000000..8bfda41b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Preview.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 1:
+ case 2:
+ {
+ return 3;
+ }
+ }
+
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Preview.xml
new file mode 100644
index 00000000..213f7724
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Unix.Preview.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 1:
+ case 2:
+ {
+ return 3;
+ }
+ }
+
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Compatible.cs
new file mode 100644
index 00000000..8bfda41b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Compatible.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 1:
+ case 2:
+ {
+ return 3;
+ }
+ }
+
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Compatible.xml
new file mode 100644
index 00000000..213f7724
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Compatible.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 1:
+ case 2:
+ {
+ return 3;
+ }
+ }
+
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Default.cs
new file mode 100644
index 00000000..8bfda41b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Default.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 1:
+ case 2:
+ {
+ return 3;
+ }
+ }
+
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Default.xml
new file mode 100644
index 00000000..213f7724
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Default.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 1:
+ case 2:
+ {
+ return 3;
+ }
+ }
+
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Latest.cs
new file mode 100644
index 00000000..8bfda41b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Latest.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 1:
+ case 2:
+ {
+ return 3;
+ }
+ }
+
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Latest.xml
new file mode 100644
index 00000000..213f7724
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Latest.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 1:
+ case 2:
+ {
+ return 3;
+ }
+ }
+
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Preview.cs
new file mode 100644
index 00000000..8bfda41b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Preview.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 1:
+ case 2:
+ {
+ return 3;
+ }
+ }
+
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Preview.xml
new file mode 100644
index 00000000..213f7724
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CaseTest.Windows.Preview.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ case 0:
+ {
+ return 0;
+ }
+
+ case 1:
+ case 2:
+ {
+ return 3;
+ }
+ }
+
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Compatible.cs
new file mode 100644
index 00000000..373b635a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Compatible.cs
@@ -0,0 +1,19 @@
+using static ClangSharp.Test.MyEnum;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+
+ public static partial class Methods
+ {
+ public static int MyFunction(MyEnum x)
+ {
+ return (x == MyEnum_Value0 || x == MyEnum_Value1 || x == MyEnum_Value2) ? 1 : 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Compatible.xml
new file mode 100644
index 00000000..500b3b31
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Compatible.xml
@@ -0,0 +1,26 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
+ int
+
+ MyEnum
+
+ return (x == MyEnum_Value0 || x == MyEnum_Value1 || x == MyEnum_Value2) ? 1 : 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Default.cs
new file mode 100644
index 00000000..373b635a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Default.cs
@@ -0,0 +1,19 @@
+using static ClangSharp.Test.MyEnum;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+
+ public static partial class Methods
+ {
+ public static int MyFunction(MyEnum x)
+ {
+ return (x == MyEnum_Value0 || x == MyEnum_Value1 || x == MyEnum_Value2) ? 1 : 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Default.xml
new file mode 100644
index 00000000..500b3b31
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Default.xml
@@ -0,0 +1,26 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
+ int
+
+ MyEnum
+
+ return (x == MyEnum_Value0 || x == MyEnum_Value1 || x == MyEnum_Value2) ? 1 : 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Latest.cs
new file mode 100644
index 00000000..373b635a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Latest.cs
@@ -0,0 +1,19 @@
+using static ClangSharp.Test.MyEnum;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+
+ public static partial class Methods
+ {
+ public static int MyFunction(MyEnum x)
+ {
+ return (x == MyEnum_Value0 || x == MyEnum_Value1 || x == MyEnum_Value2) ? 1 : 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Latest.xml
new file mode 100644
index 00000000..500b3b31
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Latest.xml
@@ -0,0 +1,26 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
+ int
+
+ MyEnum
+
+ return (x == MyEnum_Value0 || x == MyEnum_Value1 || x == MyEnum_Value2) ? 1 : 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Preview.cs
new file mode 100644
index 00000000..373b635a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Preview.cs
@@ -0,0 +1,19 @@
+using static ClangSharp.Test.MyEnum;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+
+ public static partial class Methods
+ {
+ public static int MyFunction(MyEnum x)
+ {
+ return (x == MyEnum_Value0 || x == MyEnum_Value1 || x == MyEnum_Value2) ? 1 : 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Preview.xml
new file mode 100644
index 00000000..500b3b31
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Unix.Preview.xml
@@ -0,0 +1,26 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
+ int
+
+ MyEnum
+
+ return (x == MyEnum_Value0 || x == MyEnum_Value1 || x == MyEnum_Value2) ? 1 : 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Compatible.cs
new file mode 100644
index 00000000..373b635a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Compatible.cs
@@ -0,0 +1,19 @@
+using static ClangSharp.Test.MyEnum;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+
+ public static partial class Methods
+ {
+ public static int MyFunction(MyEnum x)
+ {
+ return (x == MyEnum_Value0 || x == MyEnum_Value1 || x == MyEnum_Value2) ? 1 : 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Compatible.xml
new file mode 100644
index 00000000..500b3b31
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Compatible.xml
@@ -0,0 +1,26 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
+ int
+
+ MyEnum
+
+ return (x == MyEnum_Value0 || x == MyEnum_Value1 || x == MyEnum_Value2) ? 1 : 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Default.cs
new file mode 100644
index 00000000..373b635a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Default.cs
@@ -0,0 +1,19 @@
+using static ClangSharp.Test.MyEnum;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+
+ public static partial class Methods
+ {
+ public static int MyFunction(MyEnum x)
+ {
+ return (x == MyEnum_Value0 || x == MyEnum_Value1 || x == MyEnum_Value2) ? 1 : 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Default.xml
new file mode 100644
index 00000000..500b3b31
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Default.xml
@@ -0,0 +1,26 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
+ int
+
+ MyEnum
+
+ return (x == MyEnum_Value0 || x == MyEnum_Value1 || x == MyEnum_Value2) ? 1 : 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Latest.cs
new file mode 100644
index 00000000..373b635a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Latest.cs
@@ -0,0 +1,19 @@
+using static ClangSharp.Test.MyEnum;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+
+ public static partial class Methods
+ {
+ public static int MyFunction(MyEnum x)
+ {
+ return (x == MyEnum_Value0 || x == MyEnum_Value1 || x == MyEnum_Value2) ? 1 : 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Latest.xml
new file mode 100644
index 00000000..500b3b31
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Latest.xml
@@ -0,0 +1,26 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
+ int
+
+ MyEnum
+
+ return (x == MyEnum_Value0 || x == MyEnum_Value1 || x == MyEnum_Value2) ? 1 : 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Preview.cs
new file mode 100644
index 00000000..373b635a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Preview.cs
@@ -0,0 +1,19 @@
+using static ClangSharp.Test.MyEnum;
+
+namespace ClangSharp.Test
+{
+ public enum MyEnum
+ {
+ MyEnum_Value0,
+ MyEnum_Value1,
+ MyEnum_Value2,
+ }
+
+ public static partial class Methods
+ {
+ public static int MyFunction(MyEnum x)
+ {
+ return (x == MyEnum_Value0 || x == MyEnum_Value1 || x == MyEnum_Value2) ? 1 : 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Preview.xml
new file mode 100644
index 00000000..500b3b31
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CompareMultipleEnumTest.Windows.Preview.xml
@@ -0,0 +1,26 @@
+
+
+
+
+ int
+
+ int
+
+
+ int
+
+
+ int
+
+
+
+
+ int
+
+ MyEnum
+
+ return (x == MyEnum_Value0 || x == MyEnum_Value1 || x == MyEnum_Value2) ? 1 : 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Compatible.cs
new file mode 100644
index 00000000..c6d43d85
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ return condition ? lhs : rhs;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Compatible.xml
new file mode 100644
index 00000000..97ea7e10
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Compatible.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ return condition ? lhs : rhs;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Default.cs
new file mode 100644
index 00000000..c6d43d85
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ return condition ? lhs : rhs;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Default.xml
new file mode 100644
index 00000000..97ea7e10
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Default.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ return condition ? lhs : rhs;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Latest.cs
new file mode 100644
index 00000000..c6d43d85
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ return condition ? lhs : rhs;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Latest.xml
new file mode 100644
index 00000000..97ea7e10
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Latest.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ return condition ? lhs : rhs;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Preview.cs
new file mode 100644
index 00000000..c6d43d85
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ return condition ? lhs : rhs;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Preview.xml
new file mode 100644
index 00000000..97ea7e10
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Unix.Preview.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ return condition ? lhs : rhs;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Compatible.cs
new file mode 100644
index 00000000..c6d43d85
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ return condition ? lhs : rhs;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Compatible.xml
new file mode 100644
index 00000000..97ea7e10
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Compatible.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ return condition ? lhs : rhs;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Default.cs
new file mode 100644
index 00000000..c6d43d85
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ return condition ? lhs : rhs;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Default.xml
new file mode 100644
index 00000000..97ea7e10
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Default.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ return condition ? lhs : rhs;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Latest.cs
new file mode 100644
index 00000000..c6d43d85
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ return condition ? lhs : rhs;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Latest.xml
new file mode 100644
index 00000000..97ea7e10
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Latest.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ return condition ? lhs : rhs;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Preview.cs
new file mode 100644
index 00000000..c6d43d85
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ return condition ? lhs : rhs;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Preview.xml
new file mode 100644
index 00000000..97ea7e10
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ConditionalOperatorTest.Windows.Preview.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ return condition ? lhs : rhs;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Compatible.cs
new file mode 100644
index 00000000..c01ed821
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Compatible.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ while (true)
+ {
+ continue;
+ }
+
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Compatible.xml
new file mode 100644
index 00000000..ef206625
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Compatible.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ int
+
+ while (true)
+ {
+ continue;
+ }
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Default.cs
new file mode 100644
index 00000000..c01ed821
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Default.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ while (true)
+ {
+ continue;
+ }
+
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Default.xml
new file mode 100644
index 00000000..ef206625
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Default.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ int
+
+ while (true)
+ {
+ continue;
+ }
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Latest.cs
new file mode 100644
index 00000000..c01ed821
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Latest.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ while (true)
+ {
+ continue;
+ }
+
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Latest.xml
new file mode 100644
index 00000000..ef206625
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Latest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ int
+
+ while (true)
+ {
+ continue;
+ }
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Preview.cs
new file mode 100644
index 00000000..c01ed821
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Preview.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ while (true)
+ {
+ continue;
+ }
+
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Preview.xml
new file mode 100644
index 00000000..ef206625
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Unix.Preview.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ int
+
+ while (true)
+ {
+ continue;
+ }
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Compatible.cs
new file mode 100644
index 00000000..c01ed821
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Compatible.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ while (true)
+ {
+ continue;
+ }
+
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Compatible.xml
new file mode 100644
index 00000000..ef206625
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Compatible.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ int
+
+ while (true)
+ {
+ continue;
+ }
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Default.cs
new file mode 100644
index 00000000..c01ed821
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Default.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ while (true)
+ {
+ continue;
+ }
+
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Default.xml
new file mode 100644
index 00000000..ef206625
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Default.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ int
+
+ while (true)
+ {
+ continue;
+ }
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Latest.cs
new file mode 100644
index 00000000..c01ed821
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Latest.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ while (true)
+ {
+ continue;
+ }
+
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Latest.xml
new file mode 100644
index 00000000..ef206625
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Latest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ int
+
+ while (true)
+ {
+ continue;
+ }
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Preview.cs
new file mode 100644
index 00000000..c01ed821
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Preview.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ while (true)
+ {
+ continue;
+ }
+
+ return 0;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Preview.xml
new file mode 100644
index 00000000..ef206625
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ContinueTest.Windows.Preview.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ int
+
+ int
+
+ while (true)
+ {
+ continue;
+ }
+
+ return 0;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Compatible.cs
new file mode 100644
index 00000000..8cfe9f5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static void* MyFunction([NativeTypeName("const void *")] void* input)
+ {
+ return input;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Compatible.xml
new file mode 100644
index 00000000..e28dfd48
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ void*
+
+ void*
+
+ return input;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Default.cs
new file mode 100644
index 00000000..8cfe9f5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static void* MyFunction([NativeTypeName("const void *")] void* input)
+ {
+ return input;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Default.xml
new file mode 100644
index 00000000..e28dfd48
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ void*
+
+ void*
+
+ return input;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Latest.cs
new file mode 100644
index 00000000..8cfe9f5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static void* MyFunction([NativeTypeName("const void *")] void* input)
+ {
+ return input;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Latest.xml
new file mode 100644
index 00000000..e28dfd48
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ void*
+
+ void*
+
+ return input;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Preview.cs
new file mode 100644
index 00000000..8cfe9f5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static void* MyFunction([NativeTypeName("const void *")] void* input)
+ {
+ return input;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Preview.xml
new file mode 100644
index 00000000..e28dfd48
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Unix.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ void*
+
+ void*
+
+ return input;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Compatible.cs
new file mode 100644
index 00000000..8cfe9f5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static void* MyFunction([NativeTypeName("const void *")] void* input)
+ {
+ return input;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Compatible.xml
new file mode 100644
index 00000000..e28dfd48
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ void*
+
+ void*
+
+ return input;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Default.cs
new file mode 100644
index 00000000..8cfe9f5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static void* MyFunction([NativeTypeName("const void *")] void* input)
+ {
+ return input;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Default.xml
new file mode 100644
index 00000000..e28dfd48
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ void*
+
+ void*
+
+ return input;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Latest.cs
new file mode 100644
index 00000000..8cfe9f5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static void* MyFunction([NativeTypeName("const void *")] void* input)
+ {
+ return input;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Latest.xml
new file mode 100644
index 00000000..e28dfd48
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ void*
+
+ void*
+
+ return input;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Preview.cs
new file mode 100644
index 00000000..8cfe9f5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static void* MyFunction([NativeTypeName("const void *")] void* input)
+ {
+ return input;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Preview.xml
new file mode 100644
index 00000000..e28dfd48
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxConstCastTest.Windows.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ void*
+
+ void*
+
+ return input;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Compatible.cs
new file mode 100644
index 00000000..9b949b10
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Compatible.cs
@@ -0,0 +1,46 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStructA
+ {
+ public void** lpVtbl;
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate void _MyMethod(MyStructA* pThis);
+
+ public void MyMethod()
+ {
+ fixed (MyStructA* pThis = &this)
+ {
+ Marshal.GetDelegateForFunctionPointer<_MyMethod>((IntPtr)(lpVtbl[0]))(pThis);
+ }
+ }
+ }
+
+ [NativeTypeName("struct MyStructB : MyStructA")]
+ public unsafe partial struct MyStructB
+ {
+ public void** lpVtbl;
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate void _MyMethod(MyStructB* pThis);
+
+ public void MyMethod()
+ {
+ fixed (MyStructB* pThis = &this)
+ {
+ Marshal.GetDelegateForFunctionPointer<_MyMethod>((IntPtr)(lpVtbl[0]))(pThis);
+ }
+ }
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static MyStructB* MyFunction(MyStructA* input)
+ {
+ return (MyStructB*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Compatible.xml
new file mode 100644
index 00000000..71ec32f4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Compatible.xml
@@ -0,0 +1,54 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ MyStructA*
+
+
+
+ void
+
+ fixed (MyStructA* pThis = &this)
+ {
+ Marshal.GetDelegateForFunctionPointer<_MyMethod>((IntPtr)(lpVtbl[0]))(pThis);
+ }
+
+
+
+
+
+ void**
+
+
+ void
+
+ MyStructB*
+
+
+
+ void
+
+ fixed (MyStructB* pThis = &this)
+ {
+ Marshal.GetDelegateForFunctionPointer<_MyMethod>((IntPtr)(lpVtbl[0]))(pThis);
+ }
+
+
+
+
+
+ MyStructB*
+
+ MyStructA*
+
+ return (MyStructB*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Default.cs
new file mode 100644
index 00000000..822b63f0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Default.cs
@@ -0,0 +1,33 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStructA
+ {
+ public void** lpVtbl;
+
+ public void MyMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStructA*)Unsafe.AsPointer(ref this));
+ }
+ }
+
+ [NativeTypeName("struct MyStructB : MyStructA")]
+ public unsafe partial struct MyStructB
+ {
+ public void** lpVtbl;
+
+ public void MyMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStructB*)Unsafe.AsPointer(ref this));
+ }
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static MyStructB* MyFunction(MyStructA* input)
+ {
+ return (MyStructB*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Default.xml
new file mode 100644
index 00000000..f9669ca6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Default.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStructA*, void>)(lpVtbl[0]))((MyStructA*)Unsafe.AsPointer(ref this));
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStructB*, void>)(lpVtbl[0]))((MyStructB*)Unsafe.AsPointer(ref this));
+
+
+
+
+
+ MyStructB*
+
+ MyStructA*
+
+ return (MyStructB*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Latest.cs
new file mode 100644
index 00000000..822b63f0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Latest.cs
@@ -0,0 +1,33 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStructA
+ {
+ public void** lpVtbl;
+
+ public void MyMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStructA*)Unsafe.AsPointer(ref this));
+ }
+ }
+
+ [NativeTypeName("struct MyStructB : MyStructA")]
+ public unsafe partial struct MyStructB
+ {
+ public void** lpVtbl;
+
+ public void MyMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStructB*)Unsafe.AsPointer(ref this));
+ }
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static MyStructB* MyFunction(MyStructA* input)
+ {
+ return (MyStructB*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Latest.xml
new file mode 100644
index 00000000..f9669ca6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Latest.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStructA*, void>)(lpVtbl[0]))((MyStructA*)Unsafe.AsPointer(ref this));
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStructB*, void>)(lpVtbl[0]))((MyStructB*)Unsafe.AsPointer(ref this));
+
+
+
+
+
+ MyStructB*
+
+ MyStructA*
+
+ return (MyStructB*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Preview.cs
new file mode 100644
index 00000000..822b63f0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Preview.cs
@@ -0,0 +1,33 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStructA
+ {
+ public void** lpVtbl;
+
+ public void MyMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStructA*)Unsafe.AsPointer(ref this));
+ }
+ }
+
+ [NativeTypeName("struct MyStructB : MyStructA")]
+ public unsafe partial struct MyStructB
+ {
+ public void** lpVtbl;
+
+ public void MyMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStructB*)Unsafe.AsPointer(ref this));
+ }
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static MyStructB* MyFunction(MyStructA* input)
+ {
+ return (MyStructB*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Preview.xml
new file mode 100644
index 00000000..f9669ca6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Unix.Preview.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStructA*, void>)(lpVtbl[0]))((MyStructA*)Unsafe.AsPointer(ref this));
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStructB*, void>)(lpVtbl[0]))((MyStructB*)Unsafe.AsPointer(ref this));
+
+
+
+
+
+ MyStructB*
+
+ MyStructA*
+
+ return (MyStructB*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Compatible.cs
new file mode 100644
index 00000000..9b949b10
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Compatible.cs
@@ -0,0 +1,46 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStructA
+ {
+ public void** lpVtbl;
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate void _MyMethod(MyStructA* pThis);
+
+ public void MyMethod()
+ {
+ fixed (MyStructA* pThis = &this)
+ {
+ Marshal.GetDelegateForFunctionPointer<_MyMethod>((IntPtr)(lpVtbl[0]))(pThis);
+ }
+ }
+ }
+
+ [NativeTypeName("struct MyStructB : MyStructA")]
+ public unsafe partial struct MyStructB
+ {
+ public void** lpVtbl;
+
+ [UnmanagedFunctionPointer(CallingConvention.ThisCall)]
+ public delegate void _MyMethod(MyStructB* pThis);
+
+ public void MyMethod()
+ {
+ fixed (MyStructB* pThis = &this)
+ {
+ Marshal.GetDelegateForFunctionPointer<_MyMethod>((IntPtr)(lpVtbl[0]))(pThis);
+ }
+ }
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static MyStructB* MyFunction(MyStructA* input)
+ {
+ return (MyStructB*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Compatible.xml
new file mode 100644
index 00000000..71ec32f4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Compatible.xml
@@ -0,0 +1,54 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ MyStructA*
+
+
+
+ void
+
+ fixed (MyStructA* pThis = &this)
+ {
+ Marshal.GetDelegateForFunctionPointer<_MyMethod>((IntPtr)(lpVtbl[0]))(pThis);
+ }
+
+
+
+
+
+ void**
+
+
+ void
+
+ MyStructB*
+
+
+
+ void
+
+ fixed (MyStructB* pThis = &this)
+ {
+ Marshal.GetDelegateForFunctionPointer<_MyMethod>((IntPtr)(lpVtbl[0]))(pThis);
+ }
+
+
+
+
+
+ MyStructB*
+
+ MyStructA*
+
+ return (MyStructB*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Default.cs
new file mode 100644
index 00000000..822b63f0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Default.cs
@@ -0,0 +1,33 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStructA
+ {
+ public void** lpVtbl;
+
+ public void MyMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStructA*)Unsafe.AsPointer(ref this));
+ }
+ }
+
+ [NativeTypeName("struct MyStructB : MyStructA")]
+ public unsafe partial struct MyStructB
+ {
+ public void** lpVtbl;
+
+ public void MyMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStructB*)Unsafe.AsPointer(ref this));
+ }
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static MyStructB* MyFunction(MyStructA* input)
+ {
+ return (MyStructB*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Default.xml
new file mode 100644
index 00000000..f9669ca6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Default.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStructA*, void>)(lpVtbl[0]))((MyStructA*)Unsafe.AsPointer(ref this));
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStructB*, void>)(lpVtbl[0]))((MyStructB*)Unsafe.AsPointer(ref this));
+
+
+
+
+
+ MyStructB*
+
+ MyStructA*
+
+ return (MyStructB*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Latest.cs
new file mode 100644
index 00000000..822b63f0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Latest.cs
@@ -0,0 +1,33 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStructA
+ {
+ public void** lpVtbl;
+
+ public void MyMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStructA*)Unsafe.AsPointer(ref this));
+ }
+ }
+
+ [NativeTypeName("struct MyStructB : MyStructA")]
+ public unsafe partial struct MyStructB
+ {
+ public void** lpVtbl;
+
+ public void MyMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStructB*)Unsafe.AsPointer(ref this));
+ }
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static MyStructB* MyFunction(MyStructA* input)
+ {
+ return (MyStructB*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Latest.xml
new file mode 100644
index 00000000..f9669ca6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Latest.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStructA*, void>)(lpVtbl[0]))((MyStructA*)Unsafe.AsPointer(ref this));
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStructB*, void>)(lpVtbl[0]))((MyStructB*)Unsafe.AsPointer(ref this));
+
+
+
+
+
+ MyStructB*
+
+ MyStructA*
+
+ return (MyStructB*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Preview.cs
new file mode 100644
index 00000000..822b63f0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Preview.cs
@@ -0,0 +1,33 @@
+using System.Runtime.CompilerServices;
+
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStructA
+ {
+ public void** lpVtbl;
+
+ public void MyMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStructA*)Unsafe.AsPointer(ref this));
+ }
+ }
+
+ [NativeTypeName("struct MyStructB : MyStructA")]
+ public unsafe partial struct MyStructB
+ {
+ public void** lpVtbl;
+
+ public void MyMethod()
+ {
+ ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStructB*)Unsafe.AsPointer(ref this));
+ }
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static MyStructB* MyFunction(MyStructA* input)
+ {
+ return (MyStructB*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Preview.xml
new file mode 100644
index 00000000..f9669ca6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxDynamicCastTest.Windows.Preview.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStructA*, void>)(lpVtbl[0]))((MyStructA*)Unsafe.AsPointer(ref this));
+
+
+
+
+
+ void**
+
+
+ void
+
+ ((delegate* unmanaged[Thiscall]<MyStructB*, void>)(lpVtbl[0]))((MyStructB*)Unsafe.AsPointer(ref this));
+
+
+
+
+
+ MyStructB*
+
+ MyStructA*
+
+ return (MyStructB*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Compatible.cs
new file mode 100644
index 00000000..10bb563b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(float input)
+ {
+ return (int)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Compatible.xml
new file mode 100644
index 00000000..ea58cedb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ float
+
+ return (int)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Default.cs
new file mode 100644
index 00000000..10bb563b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(float input)
+ {
+ return (int)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Default.xml
new file mode 100644
index 00000000..ea58cedb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ float
+
+ return (int)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Latest.cs
new file mode 100644
index 00000000..10bb563b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(float input)
+ {
+ return (int)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Latest.xml
new file mode 100644
index 00000000..ea58cedb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ float
+
+ return (int)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Preview.cs
new file mode 100644
index 00000000..10bb563b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(float input)
+ {
+ return (int)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Preview.xml
new file mode 100644
index 00000000..ea58cedb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Unix.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ float
+
+ return (int)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Compatible.cs
new file mode 100644
index 00000000..10bb563b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(float input)
+ {
+ return (int)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Compatible.xml
new file mode 100644
index 00000000..ea58cedb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ float
+
+ return (int)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Default.cs
new file mode 100644
index 00000000..10bb563b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(float input)
+ {
+ return (int)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Default.xml
new file mode 100644
index 00000000..ea58cedb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ float
+
+ return (int)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Latest.cs
new file mode 100644
index 00000000..10bb563b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(float input)
+ {
+ return (int)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Latest.xml
new file mode 100644
index 00000000..ea58cedb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ float
+
+ return (int)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Preview.cs
new file mode 100644
index 00000000..10bb563b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(float input)
+ {
+ return (int)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Preview.xml
new file mode 100644
index 00000000..ea58cedb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxFunctionalCastTest.Windows.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ float
+
+ return (int)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Compatible.cs
new file mode 100644
index 00000000..4c8db4a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(void* input)
+ {
+ return (int*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Compatible.xml
new file mode 100644
index 00000000..a126989a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ void*
+
+ return (int*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Default.cs
new file mode 100644
index 00000000..4c8db4a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(void* input)
+ {
+ return (int*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Default.xml
new file mode 100644
index 00000000..a126989a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ void*
+
+ return (int*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Latest.cs
new file mode 100644
index 00000000..4c8db4a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(void* input)
+ {
+ return (int*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Latest.xml
new file mode 100644
index 00000000..a126989a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ void*
+
+ return (int*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Preview.cs
new file mode 100644
index 00000000..4c8db4a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(void* input)
+ {
+ return (int*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Preview.xml
new file mode 100644
index 00000000..a126989a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Unix.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ void*
+
+ return (int*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Compatible.cs
new file mode 100644
index 00000000..4c8db4a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(void* input)
+ {
+ return (int*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Compatible.xml
new file mode 100644
index 00000000..a126989a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ void*
+
+ return (int*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Default.cs
new file mode 100644
index 00000000..4c8db4a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(void* input)
+ {
+ return (int*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Default.xml
new file mode 100644
index 00000000..a126989a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ void*
+
+ return (int*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Latest.cs
new file mode 100644
index 00000000..4c8db4a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(void* input)
+ {
+ return (int*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Latest.xml
new file mode 100644
index 00000000..a126989a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ void*
+
+ return (int*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Preview.cs
new file mode 100644
index 00000000..4c8db4a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(void* input)
+ {
+ return (int*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Preview.xml
new file mode 100644
index 00000000..a126989a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxReinterpretCastTest.Windows.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ void*
+
+ return (int*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Compatible.cs
new file mode 100644
index 00000000..4c8db4a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(void* input)
+ {
+ return (int*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Compatible.xml
new file mode 100644
index 00000000..a126989a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ void*
+
+ return (int*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Default.cs
new file mode 100644
index 00000000..4c8db4a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(void* input)
+ {
+ return (int*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Default.xml
new file mode 100644
index 00000000..a126989a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ void*
+
+ return (int*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Latest.cs
new file mode 100644
index 00000000..4c8db4a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(void* input)
+ {
+ return (int*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Latest.xml
new file mode 100644
index 00000000..a126989a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ void*
+
+ return (int*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Preview.cs
new file mode 100644
index 00000000..4c8db4a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(void* input)
+ {
+ return (int*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Preview.xml
new file mode 100644
index 00000000..a126989a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Unix.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ void*
+
+ return (int*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Compatible.cs
new file mode 100644
index 00000000..4c8db4a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(void* input)
+ {
+ return (int*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Compatible.xml
new file mode 100644
index 00000000..a126989a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ void*
+
+ return (int*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Default.cs
new file mode 100644
index 00000000..4c8db4a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(void* input)
+ {
+ return (int*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Default.xml
new file mode 100644
index 00000000..a126989a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ void*
+
+ return (int*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Latest.cs
new file mode 100644
index 00000000..4c8db4a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(void* input)
+ {
+ return (int*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Latest.xml
new file mode 100644
index 00000000..a126989a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ void*
+
+ return (int*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Preview.cs
new file mode 100644
index 00000000..4c8db4a3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(void* input)
+ {
+ return (int*)(input);
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Preview.xml
new file mode 100644
index 00000000..a126989a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.CxxStaticCastTest.Windows.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ void*
+
+ return (int*)(input);
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Compatible.cs
new file mode 100644
index 00000000..06b3fbb2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Compatible.cs
@@ -0,0 +1,13 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction()
+ {
+ int x = 0;
+ int y = 1, z = 2;
+
+ return x + y + z;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Compatible.xml
new file mode 100644
index 00000000..350b7d46
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+ int x = 0;
+ int y = 1, z = 2;
+
+ return x + y + z;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Default.cs
new file mode 100644
index 00000000..06b3fbb2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Default.cs
@@ -0,0 +1,13 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction()
+ {
+ int x = 0;
+ int y = 1, z = 2;
+
+ return x + y + z;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Default.xml
new file mode 100644
index 00000000..350b7d46
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+ int x = 0;
+ int y = 1, z = 2;
+
+ return x + y + z;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Latest.cs
new file mode 100644
index 00000000..06b3fbb2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Latest.cs
@@ -0,0 +1,13 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction()
+ {
+ int x = 0;
+ int y = 1, z = 2;
+
+ return x + y + z;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Latest.xml
new file mode 100644
index 00000000..350b7d46
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+ int x = 0;
+ int y = 1, z = 2;
+
+ return x + y + z;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Preview.cs
new file mode 100644
index 00000000..06b3fbb2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Preview.cs
@@ -0,0 +1,13 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction()
+ {
+ int x = 0;
+ int y = 1, z = 2;
+
+ return x + y + z;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Preview.xml
new file mode 100644
index 00000000..350b7d46
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Unix.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+ int x = 0;
+ int y = 1, z = 2;
+
+ return x + y + z;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Compatible.cs
new file mode 100644
index 00000000..06b3fbb2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Compatible.cs
@@ -0,0 +1,13 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction()
+ {
+ int x = 0;
+ int y = 1, z = 2;
+
+ return x + y + z;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Compatible.xml
new file mode 100644
index 00000000..350b7d46
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+ int x = 0;
+ int y = 1, z = 2;
+
+ return x + y + z;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Default.cs
new file mode 100644
index 00000000..06b3fbb2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Default.cs
@@ -0,0 +1,13 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction()
+ {
+ int x = 0;
+ int y = 1, z = 2;
+
+ return x + y + z;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Default.xml
new file mode 100644
index 00000000..350b7d46
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+ int x = 0;
+ int y = 1, z = 2;
+
+ return x + y + z;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Latest.cs
new file mode 100644
index 00000000..06b3fbb2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Latest.cs
@@ -0,0 +1,13 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction()
+ {
+ int x = 0;
+ int y = 1, z = 2;
+
+ return x + y + z;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Latest.xml
new file mode 100644
index 00000000..350b7d46
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+ int x = 0;
+ int y = 1, z = 2;
+
+ return x + y + z;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Preview.cs
new file mode 100644
index 00000000..06b3fbb2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Preview.cs
@@ -0,0 +1,13 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction()
+ {
+ int x = 0;
+ int y = 1, z = 2;
+
+ return x + y + z;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Preview.xml
new file mode 100644
index 00000000..350b7d46
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DeclTest.Windows.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+ int x = 0;
+ int y = 1, z = 2;
+
+ return x + y + z;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Compatible.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Compatible.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Compatible.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Compatible.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Default.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Default.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Default.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Default.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Latest.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Latest.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Latest.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Latest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Preview.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Preview.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Preview.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Unix.Preview.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Compatible.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Compatible.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Compatible.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Compatible.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Default.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Default.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Default.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Default.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Latest.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Latest.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Latest.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Latest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Preview.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Preview.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Preview.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoNonCompoundTest.Windows.Preview.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Compatible.cs
new file mode 100644
index 00000000..f7a3d222
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Compatible.cs
@@ -0,0 +1,18 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ do
+ {
+ i++;
+ }
+ while (i < count);
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Compatible.xml
new file mode 100644
index 00000000..2bca7ca2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Compatible.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ do
+ {
+ i++;
+ }
+ while (i < count);
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Default.cs
new file mode 100644
index 00000000..f7a3d222
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Default.cs
@@ -0,0 +1,18 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ do
+ {
+ i++;
+ }
+ while (i < count);
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Default.xml
new file mode 100644
index 00000000..2bca7ca2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Default.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ do
+ {
+ i++;
+ }
+ while (i < count);
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Latest.cs
new file mode 100644
index 00000000..f7a3d222
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Latest.cs
@@ -0,0 +1,18 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ do
+ {
+ i++;
+ }
+ while (i < count);
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Latest.xml
new file mode 100644
index 00000000..2bca7ca2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Latest.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ do
+ {
+ i++;
+ }
+ while (i < count);
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Preview.cs
new file mode 100644
index 00000000..f7a3d222
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Preview.cs
@@ -0,0 +1,18 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ do
+ {
+ i++;
+ }
+ while (i < count);
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Preview.xml
new file mode 100644
index 00000000..2bca7ca2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Unix.Preview.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ do
+ {
+ i++;
+ }
+ while (i < count);
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Compatible.cs
new file mode 100644
index 00000000..f7a3d222
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Compatible.cs
@@ -0,0 +1,18 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ do
+ {
+ i++;
+ }
+ while (i < count);
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Compatible.xml
new file mode 100644
index 00000000..2bca7ca2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Compatible.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ do
+ {
+ i++;
+ }
+ while (i < count);
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Default.cs
new file mode 100644
index 00000000..f7a3d222
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Default.cs
@@ -0,0 +1,18 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ do
+ {
+ i++;
+ }
+ while (i < count);
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Default.xml
new file mode 100644
index 00000000..2bca7ca2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Default.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ do
+ {
+ i++;
+ }
+ while (i < count);
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Latest.cs
new file mode 100644
index 00000000..f7a3d222
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Latest.cs
@@ -0,0 +1,18 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ do
+ {
+ i++;
+ }
+ while (i < count);
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Latest.xml
new file mode 100644
index 00000000..2bca7ca2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Latest.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ do
+ {
+ i++;
+ }
+ while (i < count);
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Preview.cs
new file mode 100644
index 00000000..f7a3d222
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Preview.cs
@@ -0,0 +1,18 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ do
+ {
+ i++;
+ }
+ while (i < count);
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Preview.xml
new file mode 100644
index 00000000..2bca7ca2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.DoTest.Windows.Preview.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ do
+ {
+ i++;
+ }
+ while (i < count);
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Compatible.cs
new file mode 100644
index 00000000..a2658360
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Compatible.cs
@@ -0,0 +1,67 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Compatible.xml
new file mode 100644
index 00000000..7bdb3bdb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Compatible.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+ int
+
+ int
+
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Default.cs
new file mode 100644
index 00000000..a2658360
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Default.cs
@@ -0,0 +1,67 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Default.xml
new file mode 100644
index 00000000..7bdb3bdb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Default.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+ int
+
+ int
+
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Latest.cs
new file mode 100644
index 00000000..a2658360
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Latest.cs
@@ -0,0 +1,67 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Latest.xml
new file mode 100644
index 00000000..7bdb3bdb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Latest.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+ int
+
+ int
+
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Preview.cs
new file mode 100644
index 00000000..a2658360
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Preview.cs
@@ -0,0 +1,67 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Preview.xml
new file mode 100644
index 00000000..7bdb3bdb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Unix.Preview.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+ int
+
+ int
+
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Compatible.cs
new file mode 100644
index 00000000..a2658360
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Compatible.cs
@@ -0,0 +1,67 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Compatible.xml
new file mode 100644
index 00000000..7bdb3bdb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Compatible.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+ int
+
+ int
+
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Default.cs
new file mode 100644
index 00000000..a2658360
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Default.cs
@@ -0,0 +1,67 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Default.xml
new file mode 100644
index 00000000..7bdb3bdb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Default.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+ int
+
+ int
+
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Latest.cs
new file mode 100644
index 00000000..a2658360
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Latest.cs
@@ -0,0 +1,67 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Latest.xml
new file mode 100644
index 00000000..7bdb3bdb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Latest.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+ int
+
+ int
+
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Preview.cs
new file mode 100644
index 00000000..a2658360
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Preview.cs
@@ -0,0 +1,67 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Preview.xml
new file mode 100644
index 00000000..7bdb3bdb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForNonCompoundTest.Windows.Preview.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+ int
+
+ int
+
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Compatible.cs
new file mode 100644
index 00000000..a2658360
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Compatible.cs
@@ -0,0 +1,67 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Compatible.xml
new file mode 100644
index 00000000..7bdb3bdb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Compatible.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+ int
+
+ int
+
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Default.cs
new file mode 100644
index 00000000..a2658360
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Default.cs
@@ -0,0 +1,67 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Default.xml
new file mode 100644
index 00000000..7bdb3bdb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Default.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+ int
+
+ int
+
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Latest.cs
new file mode 100644
index 00000000..a2658360
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Latest.cs
@@ -0,0 +1,67 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Latest.xml
new file mode 100644
index 00000000..7bdb3bdb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Latest.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+ int
+
+ int
+
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Preview.cs
new file mode 100644
index 00000000..a2658360
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Preview.cs
@@ -0,0 +1,67 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Preview.xml
new file mode 100644
index 00000000..7bdb3bdb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Unix.Preview.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+ int
+
+ int
+
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Compatible.cs
new file mode 100644
index 00000000..a2658360
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Compatible.cs
@@ -0,0 +1,67 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Compatible.xml
new file mode 100644
index 00000000..7bdb3bdb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Compatible.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+ int
+
+ int
+
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Default.cs
new file mode 100644
index 00000000..a2658360
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Default.cs
@@ -0,0 +1,67 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Default.xml
new file mode 100644
index 00000000..7bdb3bdb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Default.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+ int
+
+ int
+
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Latest.cs
new file mode 100644
index 00000000..a2658360
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Latest.cs
@@ -0,0 +1,67 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Latest.xml
new file mode 100644
index 00000000..7bdb3bdb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Latest.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+ int
+
+ int
+
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Preview.cs
new file mode 100644
index 00000000..a2658360
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Preview.cs
@@ -0,0 +1,67 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Preview.xml
new file mode 100644
index 00000000..7bdb3bdb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ForTest.Windows.Preview.xml
@@ -0,0 +1,71 @@
+
+
+
+
+
+ int
+
+ int
+
+ for (int i = 0; i < count; i--)
+ {
+ i += 2;
+ }
+
+ int x;
+
+ for (x = 0; x < count; x--)
+ {
+ x += 2;
+ }
+
+ x = 0;
+ for (; x < count; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0;; i--)
+ {
+ i += 2;
+ }
+
+ for (x = 0;; x--)
+ {
+ x += 2;
+ }
+
+ for (int i = 0; i < count;)
+ {
+ i++;
+ }
+
+ for (x = 0; x < count;)
+ {
+ x++;
+ }
+
+ x = 0;
+ for (; x < count;)
+ {
+ x++;
+ }
+
+ for (int i = 0;;)
+ {
+ i++;
+ }
+
+ for (x = 0;;)
+ {
+ x++;
+ }
+
+ for (;;)
+ {
+ return -1;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Compatible.cs
new file mode 100644
index 00000000..32158b93
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Compatible.cs
@@ -0,0 +1,19 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition1, int a, int b, bool condition2, int c)
+ {
+ if (condition1)
+ {
+ return a;
+ }
+ else if (condition2)
+ {
+ return b;
+ }
+
+ return c;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Compatible.xml
new file mode 100644
index 00000000..851bfb4f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Compatible.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+
+ bool
+
+
+ int
+
+ if (condition1)
+ {
+ return a;
+ }
+ else if (condition2)
+ {
+ return b;
+ }
+
+ return c;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Default.cs
new file mode 100644
index 00000000..32158b93
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Default.cs
@@ -0,0 +1,19 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition1, int a, int b, bool condition2, int c)
+ {
+ if (condition1)
+ {
+ return a;
+ }
+ else if (condition2)
+ {
+ return b;
+ }
+
+ return c;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Default.xml
new file mode 100644
index 00000000..851bfb4f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Default.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+
+ bool
+
+
+ int
+
+ if (condition1)
+ {
+ return a;
+ }
+ else if (condition2)
+ {
+ return b;
+ }
+
+ return c;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Latest.cs
new file mode 100644
index 00000000..32158b93
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Latest.cs
@@ -0,0 +1,19 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition1, int a, int b, bool condition2, int c)
+ {
+ if (condition1)
+ {
+ return a;
+ }
+ else if (condition2)
+ {
+ return b;
+ }
+
+ return c;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Latest.xml
new file mode 100644
index 00000000..851bfb4f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Latest.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+
+ bool
+
+
+ int
+
+ if (condition1)
+ {
+ return a;
+ }
+ else if (condition2)
+ {
+ return b;
+ }
+
+ return c;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Preview.cs
new file mode 100644
index 00000000..32158b93
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Preview.cs
@@ -0,0 +1,19 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition1, int a, int b, bool condition2, int c)
+ {
+ if (condition1)
+ {
+ return a;
+ }
+ else if (condition2)
+ {
+ return b;
+ }
+
+ return c;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Preview.xml
new file mode 100644
index 00000000..851bfb4f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Unix.Preview.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+
+ bool
+
+
+ int
+
+ if (condition1)
+ {
+ return a;
+ }
+ else if (condition2)
+ {
+ return b;
+ }
+
+ return c;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Compatible.cs
new file mode 100644
index 00000000..32158b93
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Compatible.cs
@@ -0,0 +1,19 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition1, int a, int b, bool condition2, int c)
+ {
+ if (condition1)
+ {
+ return a;
+ }
+ else if (condition2)
+ {
+ return b;
+ }
+
+ return c;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Compatible.xml
new file mode 100644
index 00000000..851bfb4f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Compatible.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+
+ bool
+
+
+ int
+
+ if (condition1)
+ {
+ return a;
+ }
+ else if (condition2)
+ {
+ return b;
+ }
+
+ return c;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Default.cs
new file mode 100644
index 00000000..32158b93
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Default.cs
@@ -0,0 +1,19 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition1, int a, int b, bool condition2, int c)
+ {
+ if (condition1)
+ {
+ return a;
+ }
+ else if (condition2)
+ {
+ return b;
+ }
+
+ return c;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Default.xml
new file mode 100644
index 00000000..851bfb4f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Default.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+
+ bool
+
+
+ int
+
+ if (condition1)
+ {
+ return a;
+ }
+ else if (condition2)
+ {
+ return b;
+ }
+
+ return c;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Latest.cs
new file mode 100644
index 00000000..32158b93
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Latest.cs
@@ -0,0 +1,19 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition1, int a, int b, bool condition2, int c)
+ {
+ if (condition1)
+ {
+ return a;
+ }
+ else if (condition2)
+ {
+ return b;
+ }
+
+ return c;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Latest.xml
new file mode 100644
index 00000000..851bfb4f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Latest.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+
+ bool
+
+
+ int
+
+ if (condition1)
+ {
+ return a;
+ }
+ else if (condition2)
+ {
+ return b;
+ }
+
+ return c;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Preview.cs
new file mode 100644
index 00000000..32158b93
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Preview.cs
@@ -0,0 +1,19 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition1, int a, int b, bool condition2, int c)
+ {
+ if (condition1)
+ {
+ return a;
+ }
+ else if (condition2)
+ {
+ return b;
+ }
+
+ return c;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Preview.xml
new file mode 100644
index 00000000..851bfb4f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseIfTest.Windows.Preview.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+
+ bool
+
+
+ int
+
+ if (condition1)
+ {
+ return a;
+ }
+ else if (condition2)
+ {
+ return b;
+ }
+
+ return c;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Compatible.cs
new file mode 100644
index 00000000..9dd758ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Compatible.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Compatible.xml
new file mode 100644
index 00000000..a0e537ca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Compatible.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Default.cs
new file mode 100644
index 00000000..9dd758ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Default.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Default.xml
new file mode 100644
index 00000000..a0e537ca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Default.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Latest.cs
new file mode 100644
index 00000000..9dd758ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Latest.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Latest.xml
new file mode 100644
index 00000000..a0e537ca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Latest.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Preview.cs
new file mode 100644
index 00000000..9dd758ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Preview.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Preview.xml
new file mode 100644
index 00000000..a0e537ca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Unix.Preview.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Compatible.cs
new file mode 100644
index 00000000..9dd758ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Compatible.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Compatible.xml
new file mode 100644
index 00000000..a0e537ca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Compatible.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Default.cs
new file mode 100644
index 00000000..9dd758ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Default.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Default.xml
new file mode 100644
index 00000000..a0e537ca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Default.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Latest.cs
new file mode 100644
index 00000000..9dd758ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Latest.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Latest.xml
new file mode 100644
index 00000000..a0e537ca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Latest.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Preview.cs
new file mode 100644
index 00000000..9dd758ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Preview.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Preview.xml
new file mode 100644
index 00000000..a0e537ca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseNonCompoundTest.Windows.Preview.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Compatible.cs
new file mode 100644
index 00000000..9dd758ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Compatible.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Compatible.xml
new file mode 100644
index 00000000..a0e537ca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Compatible.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Default.cs
new file mode 100644
index 00000000..9dd758ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Default.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Default.xml
new file mode 100644
index 00000000..a0e537ca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Default.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Latest.cs
new file mode 100644
index 00000000..9dd758ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Latest.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Latest.xml
new file mode 100644
index 00000000..a0e537ca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Latest.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Preview.cs
new file mode 100644
index 00000000..9dd758ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Preview.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Preview.xml
new file mode 100644
index 00000000..a0e537ca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Unix.Preview.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Compatible.cs
new file mode 100644
index 00000000..9dd758ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Compatible.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Compatible.xml
new file mode 100644
index 00000000..a0e537ca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Compatible.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Default.cs
new file mode 100644
index 00000000..9dd758ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Default.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Default.xml
new file mode 100644
index 00000000..a0e537ca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Default.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Latest.cs
new file mode 100644
index 00000000..9dd758ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Latest.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Latest.xml
new file mode 100644
index 00000000..a0e537ca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Latest.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Preview.cs
new file mode 100644
index 00000000..9dd758ab
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Preview.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Preview.xml
new file mode 100644
index 00000000..a0e537ca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfElseTest.Windows.Preview.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+ else
+ {
+ return rhs;
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Compatible.cs
new file mode 100644
index 00000000..0dd6b07f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Compatible.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+
+ return rhs;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Compatible.xml
new file mode 100644
index 00000000..64972354
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Compatible.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+
+ return rhs;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Default.cs
new file mode 100644
index 00000000..0dd6b07f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Default.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+
+ return rhs;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Default.xml
new file mode 100644
index 00000000..64972354
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Default.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+
+ return rhs;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Latest.cs
new file mode 100644
index 00000000..0dd6b07f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Latest.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+
+ return rhs;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Latest.xml
new file mode 100644
index 00000000..64972354
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Latest.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+
+ return rhs;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Preview.cs
new file mode 100644
index 00000000..0dd6b07f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Preview.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+
+ return rhs;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Preview.xml
new file mode 100644
index 00000000..64972354
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Unix.Preview.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+
+ return rhs;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Compatible.cs
new file mode 100644
index 00000000..0dd6b07f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Compatible.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+
+ return rhs;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Compatible.xml
new file mode 100644
index 00000000..64972354
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Compatible.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+
+ return rhs;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Default.cs
new file mode 100644
index 00000000..0dd6b07f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Default.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+
+ return rhs;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Default.xml
new file mode 100644
index 00000000..64972354
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Default.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+
+ return rhs;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Latest.cs
new file mode 100644
index 00000000..0dd6b07f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Latest.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+
+ return rhs;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Latest.xml
new file mode 100644
index 00000000..64972354
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Latest.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+
+ return rhs;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Preview.cs
new file mode 100644
index 00000000..0dd6b07f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Preview.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(bool condition, int lhs, int rhs)
+ {
+ if (condition)
+ {
+ return lhs;
+ }
+
+ return rhs;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Preview.xml
new file mode 100644
index 00000000..64972354
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.IfTest.Windows.Preview.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ int
+
+ bool
+
+
+ int
+
+
+ int
+
+ if (condition)
+ {
+ return lhs;
+ }
+
+ return rhs;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Compatible.cs
new file mode 100644
index 00000000..d192847d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Compatible.cs
@@ -0,0 +1,28 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ int[] x = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ 4,
+ };
+ int[] y = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ default,
+ };
+ int[] z = new int[2]
+ {
+ 1,
+ 2,
+ };
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Compatible.xml
new file mode 100644
index 00000000..441a7326
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Compatible.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+ void
+ int[] x = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ 4,
+ };
+ int[] y = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ default,
+ };
+ int[] z = new int[2]
+ {
+ 1,
+ 2,
+ };
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Default.cs
new file mode 100644
index 00000000..d192847d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Default.cs
@@ -0,0 +1,28 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ int[] x = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ 4,
+ };
+ int[] y = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ default,
+ };
+ int[] z = new int[2]
+ {
+ 1,
+ 2,
+ };
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Default.xml
new file mode 100644
index 00000000..441a7326
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Default.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+ void
+ int[] x = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ 4,
+ };
+ int[] y = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ default,
+ };
+ int[] z = new int[2]
+ {
+ 1,
+ 2,
+ };
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Latest.cs
new file mode 100644
index 00000000..d192847d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Latest.cs
@@ -0,0 +1,28 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ int[] x = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ 4,
+ };
+ int[] y = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ default,
+ };
+ int[] z = new int[2]
+ {
+ 1,
+ 2,
+ };
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Latest.xml
new file mode 100644
index 00000000..441a7326
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Latest.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+ void
+ int[] x = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ 4,
+ };
+ int[] y = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ default,
+ };
+ int[] z = new int[2]
+ {
+ 1,
+ 2,
+ };
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Preview.cs
new file mode 100644
index 00000000..d192847d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Preview.cs
@@ -0,0 +1,28 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ int[] x = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ 4,
+ };
+ int[] y = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ default,
+ };
+ int[] z = new int[2]
+ {
+ 1,
+ 2,
+ };
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Preview.xml
new file mode 100644
index 00000000..441a7326
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Unix.Preview.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+ void
+ int[] x = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ 4,
+ };
+ int[] y = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ default,
+ };
+ int[] z = new int[2]
+ {
+ 1,
+ 2,
+ };
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Compatible.cs
new file mode 100644
index 00000000..d192847d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Compatible.cs
@@ -0,0 +1,28 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ int[] x = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ 4,
+ };
+ int[] y = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ default,
+ };
+ int[] z = new int[2]
+ {
+ 1,
+ 2,
+ };
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Compatible.xml
new file mode 100644
index 00000000..441a7326
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Compatible.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+ void
+ int[] x = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ 4,
+ };
+ int[] y = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ default,
+ };
+ int[] z = new int[2]
+ {
+ 1,
+ 2,
+ };
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Default.cs
new file mode 100644
index 00000000..d192847d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Default.cs
@@ -0,0 +1,28 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ int[] x = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ 4,
+ };
+ int[] y = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ default,
+ };
+ int[] z = new int[2]
+ {
+ 1,
+ 2,
+ };
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Default.xml
new file mode 100644
index 00000000..441a7326
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Default.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+ void
+ int[] x = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ 4,
+ };
+ int[] y = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ default,
+ };
+ int[] z = new int[2]
+ {
+ 1,
+ 2,
+ };
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Latest.cs
new file mode 100644
index 00000000..d192847d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Latest.cs
@@ -0,0 +1,28 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ int[] x = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ 4,
+ };
+ int[] y = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ default,
+ };
+ int[] z = new int[2]
+ {
+ 1,
+ 2,
+ };
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Latest.xml
new file mode 100644
index 00000000..441a7326
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Latest.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+ void
+ int[] x = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ 4,
+ };
+ int[] y = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ default,
+ };
+ int[] z = new int[2]
+ {
+ 1,
+ 2,
+ };
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Preview.cs
new file mode 100644
index 00000000..d192847d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Preview.cs
@@ -0,0 +1,28 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ int[] x = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ 4,
+ };
+ int[] y = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ default,
+ };
+ int[] z = new int[2]
+ {
+ 1,
+ 2,
+ };
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Preview.xml
new file mode 100644
index 00000000..441a7326
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForArrayTest.Windows.Preview.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+ void
+ int[] x = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ 4,
+ };
+ int[] y = new int[4]
+ {
+ 1,
+ 2,
+ 3,
+ default,
+ };
+ int[] z = new int[2]
+ {
+ 1,
+ 2,
+ };
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Compatible.cs
new file mode 100644
index 00000000..dbbad4f9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Compatible.cs
@@ -0,0 +1,37 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public float x;
+
+ public float y;
+
+ public float z;
+
+ public float w;
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction1()
+ {
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ w = 4.0f,
+ };
+ }
+
+ public static MyStruct MyFunction2()
+ {
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ };
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Compatible.xml
new file mode 100644
index 00000000..9d0602d9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Compatible.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+ float
+
+
+ float
+
+
+ float
+
+
+ float
+
+
+
+
+ MyStruct
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ w = 4.0f,
+ };
+
+
+ MyStruct
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ };
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Default.cs
new file mode 100644
index 00000000..dbbad4f9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Default.cs
@@ -0,0 +1,37 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public float x;
+
+ public float y;
+
+ public float z;
+
+ public float w;
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction1()
+ {
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ w = 4.0f,
+ };
+ }
+
+ public static MyStruct MyFunction2()
+ {
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ };
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Default.xml
new file mode 100644
index 00000000..9d0602d9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Default.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+ float
+
+
+ float
+
+
+ float
+
+
+ float
+
+
+
+
+ MyStruct
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ w = 4.0f,
+ };
+
+
+ MyStruct
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ };
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Latest.cs
new file mode 100644
index 00000000..dbbad4f9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Latest.cs
@@ -0,0 +1,37 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public float x;
+
+ public float y;
+
+ public float z;
+
+ public float w;
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction1()
+ {
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ w = 4.0f,
+ };
+ }
+
+ public static MyStruct MyFunction2()
+ {
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ };
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Latest.xml
new file mode 100644
index 00000000..9d0602d9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Latest.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+ float
+
+
+ float
+
+
+ float
+
+
+ float
+
+
+
+
+ MyStruct
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ w = 4.0f,
+ };
+
+
+ MyStruct
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ };
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Preview.cs
new file mode 100644
index 00000000..dbbad4f9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Preview.cs
@@ -0,0 +1,37 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public float x;
+
+ public float y;
+
+ public float z;
+
+ public float w;
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction1()
+ {
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ w = 4.0f,
+ };
+ }
+
+ public static MyStruct MyFunction2()
+ {
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ };
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Preview.xml
new file mode 100644
index 00000000..9d0602d9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Unix.Preview.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+ float
+
+
+ float
+
+
+ float
+
+
+ float
+
+
+
+
+ MyStruct
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ w = 4.0f,
+ };
+
+
+ MyStruct
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ };
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Compatible.cs
new file mode 100644
index 00000000..dbbad4f9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Compatible.cs
@@ -0,0 +1,37 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public float x;
+
+ public float y;
+
+ public float z;
+
+ public float w;
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction1()
+ {
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ w = 4.0f,
+ };
+ }
+
+ public static MyStruct MyFunction2()
+ {
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ };
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Compatible.xml
new file mode 100644
index 00000000..9d0602d9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Compatible.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+ float
+
+
+ float
+
+
+ float
+
+
+ float
+
+
+
+
+ MyStruct
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ w = 4.0f,
+ };
+
+
+ MyStruct
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ };
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Default.cs
new file mode 100644
index 00000000..dbbad4f9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Default.cs
@@ -0,0 +1,37 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public float x;
+
+ public float y;
+
+ public float z;
+
+ public float w;
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction1()
+ {
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ w = 4.0f,
+ };
+ }
+
+ public static MyStruct MyFunction2()
+ {
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ };
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Default.xml
new file mode 100644
index 00000000..9d0602d9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Default.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+ float
+
+
+ float
+
+
+ float
+
+
+ float
+
+
+
+
+ MyStruct
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ w = 4.0f,
+ };
+
+
+ MyStruct
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ };
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Latest.cs
new file mode 100644
index 00000000..dbbad4f9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Latest.cs
@@ -0,0 +1,37 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public float x;
+
+ public float y;
+
+ public float z;
+
+ public float w;
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction1()
+ {
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ w = 4.0f,
+ };
+ }
+
+ public static MyStruct MyFunction2()
+ {
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ };
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Latest.xml
new file mode 100644
index 00000000..9d0602d9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Latest.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+ float
+
+
+ float
+
+
+ float
+
+
+ float
+
+
+
+
+ MyStruct
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ w = 4.0f,
+ };
+
+
+ MyStruct
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ };
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Preview.cs
new file mode 100644
index 00000000..dbbad4f9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Preview.cs
@@ -0,0 +1,37 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public float x;
+
+ public float y;
+
+ public float z;
+
+ public float w;
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction1()
+ {
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ w = 4.0f,
+ };
+ }
+
+ public static MyStruct MyFunction2()
+ {
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ };
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Preview.xml
new file mode 100644
index 00000000..9d0602d9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.InitListForRecordDeclTest.Windows.Preview.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+ float
+
+
+ float
+
+
+ float
+
+
+ float
+
+
+
+
+ MyStruct
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ w = 4.0f,
+ };
+
+
+ MyStruct
+ return new MyStruct
+ {
+ x = 1.0f,
+ y = 2.0f,
+ z = 3.0f,
+ };
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Compatible.cs
new file mode 100644
index 00000000..5648f3f4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Compatible.cs
@@ -0,0 +1,20 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction1(MyStruct instance)
+ {
+ return instance.value;
+ }
+
+ public static int MyFunction2(MyStruct* instance)
+ {
+ return instance->value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Compatible.xml
new file mode 100644
index 00000000..a8432fcd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Compatible.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+ int
+
+
+
+
+ int
+
+ MyStruct
+
+ return instance.value;
+
+
+ int
+
+ MyStruct*
+
+ return instance->value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Default.cs
new file mode 100644
index 00000000..5648f3f4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Default.cs
@@ -0,0 +1,20 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction1(MyStruct instance)
+ {
+ return instance.value;
+ }
+
+ public static int MyFunction2(MyStruct* instance)
+ {
+ return instance->value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Default.xml
new file mode 100644
index 00000000..a8432fcd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Default.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+ int
+
+
+
+
+ int
+
+ MyStruct
+
+ return instance.value;
+
+
+ int
+
+ MyStruct*
+
+ return instance->value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Latest.cs
new file mode 100644
index 00000000..5648f3f4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Latest.cs
@@ -0,0 +1,20 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction1(MyStruct instance)
+ {
+ return instance.value;
+ }
+
+ public static int MyFunction2(MyStruct* instance)
+ {
+ return instance->value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Latest.xml
new file mode 100644
index 00000000..a8432fcd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Latest.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+ int
+
+
+
+
+ int
+
+ MyStruct
+
+ return instance.value;
+
+
+ int
+
+ MyStruct*
+
+ return instance->value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Preview.cs
new file mode 100644
index 00000000..5648f3f4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Preview.cs
@@ -0,0 +1,20 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction1(MyStruct instance)
+ {
+ return instance.value;
+ }
+
+ public static int MyFunction2(MyStruct* instance)
+ {
+ return instance->value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Preview.xml
new file mode 100644
index 00000000..a8432fcd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Unix.Preview.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+ int
+
+
+
+
+ int
+
+ MyStruct
+
+ return instance.value;
+
+
+ int
+
+ MyStruct*
+
+ return instance->value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Compatible.cs
new file mode 100644
index 00000000..5648f3f4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Compatible.cs
@@ -0,0 +1,20 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction1(MyStruct instance)
+ {
+ return instance.value;
+ }
+
+ public static int MyFunction2(MyStruct* instance)
+ {
+ return instance->value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Compatible.xml
new file mode 100644
index 00000000..a8432fcd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Compatible.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+ int
+
+
+
+
+ int
+
+ MyStruct
+
+ return instance.value;
+
+
+ int
+
+ MyStruct*
+
+ return instance->value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Default.cs
new file mode 100644
index 00000000..5648f3f4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Default.cs
@@ -0,0 +1,20 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction1(MyStruct instance)
+ {
+ return instance.value;
+ }
+
+ public static int MyFunction2(MyStruct* instance)
+ {
+ return instance->value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Default.xml
new file mode 100644
index 00000000..a8432fcd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Default.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+ int
+
+
+
+
+ int
+
+ MyStruct
+
+ return instance.value;
+
+
+ int
+
+ MyStruct*
+
+ return instance->value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Latest.cs
new file mode 100644
index 00000000..5648f3f4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Latest.cs
@@ -0,0 +1,20 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction1(MyStruct instance)
+ {
+ return instance.value;
+ }
+
+ public static int MyFunction2(MyStruct* instance)
+ {
+ return instance->value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Latest.xml
new file mode 100644
index 00000000..a8432fcd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Latest.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+ int
+
+
+
+
+ int
+
+ MyStruct
+
+ return instance.value;
+
+
+ int
+
+ MyStruct*
+
+ return instance->value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Preview.cs
new file mode 100644
index 00000000..5648f3f4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Preview.cs
@@ -0,0 +1,20 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction1(MyStruct instance)
+ {
+ return instance.value;
+ }
+
+ public static int MyFunction2(MyStruct* instance)
+ {
+ return instance->value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Preview.xml
new file mode 100644
index 00000000..a8432fcd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.MemberTest.Windows.Preview.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+ int
+
+
+
+
+ int
+
+ MyStruct
+
+ return instance.value;
+
+
+ int
+
+ MyStruct*
+
+ return instance->value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Compatible.cs
new file mode 100644
index 00000000..ed5080a4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Compatible.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static bool MyFunction([NativeTypeName("const MyStruct &")] MyStruct* lhs, [NativeTypeName("const MyStruct &")] MyStruct* rhs)
+ {
+ return lhs->value == rhs->value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Compatible.xml
new file mode 100644
index 00000000..a9d3331c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Compatible.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ int
+
+
+
+
+ bool
+
+ MyStruct*
+
+
+ MyStruct*
+
+ return lhs->value == rhs->value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Default.cs
new file mode 100644
index 00000000..ed5080a4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Default.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static bool MyFunction([NativeTypeName("const MyStruct &")] MyStruct* lhs, [NativeTypeName("const MyStruct &")] MyStruct* rhs)
+ {
+ return lhs->value == rhs->value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Default.xml
new file mode 100644
index 00000000..a9d3331c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Default.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ int
+
+
+
+
+ bool
+
+ MyStruct*
+
+
+ MyStruct*
+
+ return lhs->value == rhs->value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Latest.cs
new file mode 100644
index 00000000..ed5080a4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Latest.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static bool MyFunction([NativeTypeName("const MyStruct &")] MyStruct* lhs, [NativeTypeName("const MyStruct &")] MyStruct* rhs)
+ {
+ return lhs->value == rhs->value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Latest.xml
new file mode 100644
index 00000000..a9d3331c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Latest.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ int
+
+
+
+
+ bool
+
+ MyStruct*
+
+
+ MyStruct*
+
+ return lhs->value == rhs->value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Preview.cs
new file mode 100644
index 00000000..ed5080a4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Preview.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static bool MyFunction([NativeTypeName("const MyStruct &")] MyStruct* lhs, [NativeTypeName("const MyStruct &")] MyStruct* rhs)
+ {
+ return lhs->value == rhs->value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Preview.xml
new file mode 100644
index 00000000..a9d3331c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Unix.Preview.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ int
+
+
+
+
+ bool
+
+ MyStruct*
+
+
+ MyStruct*
+
+ return lhs->value == rhs->value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Compatible.cs
new file mode 100644
index 00000000..ed5080a4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Compatible.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static bool MyFunction([NativeTypeName("const MyStruct &")] MyStruct* lhs, [NativeTypeName("const MyStruct &")] MyStruct* rhs)
+ {
+ return lhs->value == rhs->value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Compatible.xml
new file mode 100644
index 00000000..a9d3331c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Compatible.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ int
+
+
+
+
+ bool
+
+ MyStruct*
+
+
+ MyStruct*
+
+ return lhs->value == rhs->value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Default.cs
new file mode 100644
index 00000000..ed5080a4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Default.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static bool MyFunction([NativeTypeName("const MyStruct &")] MyStruct* lhs, [NativeTypeName("const MyStruct &")] MyStruct* rhs)
+ {
+ return lhs->value == rhs->value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Default.xml
new file mode 100644
index 00000000..a9d3331c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Default.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ int
+
+
+
+
+ bool
+
+ MyStruct*
+
+
+ MyStruct*
+
+ return lhs->value == rhs->value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Latest.cs
new file mode 100644
index 00000000..ed5080a4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Latest.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static bool MyFunction([NativeTypeName("const MyStruct &")] MyStruct* lhs, [NativeTypeName("const MyStruct &")] MyStruct* rhs)
+ {
+ return lhs->value == rhs->value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Latest.xml
new file mode 100644
index 00000000..a9d3331c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Latest.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ int
+
+
+
+
+ bool
+
+ MyStruct*
+
+
+ MyStruct*
+
+ return lhs->value == rhs->value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Preview.cs
new file mode 100644
index 00000000..ed5080a4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Preview.cs
@@ -0,0 +1,15 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public int value;
+ }
+
+ public static unsafe partial class Methods
+ {
+ public static bool MyFunction([NativeTypeName("const MyStruct &")] MyStruct* lhs, [NativeTypeName("const MyStruct &")] MyStruct* rhs)
+ {
+ return lhs->value == rhs->value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Preview.xml
new file mode 100644
index 00000000..a9d3331c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.RefToPtrTest.Windows.Preview.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ int
+
+
+
+
+ bool
+
+ MyStruct*
+
+
+ MyStruct*
+
+ return lhs->value == rhs->value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Compatible.cs
new file mode 100644
index 00000000..2f79bb94
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction()
+ {
+ return false;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Compatible.xml
new file mode 100644
index 00000000..d4f9a4aa
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ bool
+ return false;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Default.cs
new file mode 100644
index 00000000..2f79bb94
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction()
+ {
+ return false;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Default.xml
new file mode 100644
index 00000000..d4f9a4aa
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ bool
+ return false;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Latest.cs
new file mode 100644
index 00000000..2f79bb94
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction()
+ {
+ return false;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Latest.xml
new file mode 100644
index 00000000..d4f9a4aa
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ bool
+ return false;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Preview.cs
new file mode 100644
index 00000000..2f79bb94
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction()
+ {
+ return false;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Preview.xml
new file mode 100644
index 00000000..d4f9a4aa
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Unix.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ bool
+ return false;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Compatible.cs
new file mode 100644
index 00000000..2f79bb94
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction()
+ {
+ return false;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Compatible.xml
new file mode 100644
index 00000000..d4f9a4aa
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ bool
+ return false;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Default.cs
new file mode 100644
index 00000000..2f79bb94
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction()
+ {
+ return false;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Default.xml
new file mode 100644
index 00000000..d4f9a4aa
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ bool
+ return false;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Latest.cs
new file mode 100644
index 00000000..2f79bb94
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction()
+ {
+ return false;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Latest.xml
new file mode 100644
index 00000000..d4f9a4aa
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ bool
+ return false;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Preview.cs
new file mode 100644
index 00000000..2f79bb94
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction()
+ {
+ return false;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Preview.xml
new file mode 100644
index 00000000..d4f9a4aa
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.false.Windows.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ bool
+ return false;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Compatible.cs
new file mode 100644
index 00000000..13af7f5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction()
+ {
+ return true;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Compatible.xml
new file mode 100644
index 00000000..4cb527fd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ bool
+ return true;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Default.cs
new file mode 100644
index 00000000..13af7f5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction()
+ {
+ return true;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Default.xml
new file mode 100644
index 00000000..4cb527fd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ bool
+ return true;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Latest.cs
new file mode 100644
index 00000000..13af7f5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction()
+ {
+ return true;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Latest.xml
new file mode 100644
index 00000000..4cb527fd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ bool
+ return true;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Preview.cs
new file mode 100644
index 00000000..13af7f5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction()
+ {
+ return true;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Preview.xml
new file mode 100644
index 00000000..4cb527fd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Unix.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ bool
+ return true;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Compatible.cs
new file mode 100644
index 00000000..13af7f5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction()
+ {
+ return true;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Compatible.xml
new file mode 100644
index 00000000..4cb527fd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ bool
+ return true;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Default.cs
new file mode 100644
index 00000000..13af7f5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction()
+ {
+ return true;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Default.xml
new file mode 100644
index 00000000..4cb527fd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ bool
+ return true;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Latest.cs
new file mode 100644
index 00000000..13af7f5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction()
+ {
+ return true;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Latest.xml
new file mode 100644
index 00000000..4cb527fd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ bool
+ return true;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Preview.cs
new file mode 100644
index 00000000..13af7f5f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction()
+ {
+ return true;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Preview.xml
new file mode 100644
index 00000000..4cb527fd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXBooleanLiteralTest.true.Windows.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ bool
+ return true;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Compatible.cs
new file mode 100644
index 00000000..d45eaa35
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static void* MyFunction()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Compatible.xml
new file mode 100644
index 00000000..68b582fb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Default.cs
new file mode 100644
index 00000000..d45eaa35
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static void* MyFunction()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Default.xml
new file mode 100644
index 00000000..68b582fb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Latest.cs
new file mode 100644
index 00000000..d45eaa35
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static void* MyFunction()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Latest.xml
new file mode 100644
index 00000000..68b582fb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Preview.cs
new file mode 100644
index 00000000..d45eaa35
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static void* MyFunction()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Preview.xml
new file mode 100644
index 00000000..68b582fb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Unix.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Compatible.cs
new file mode 100644
index 00000000..d45eaa35
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static void* MyFunction()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Compatible.xml
new file mode 100644
index 00000000..68b582fb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Default.cs
new file mode 100644
index 00000000..d45eaa35
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static void* MyFunction()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Default.xml
new file mode 100644
index 00000000..68b582fb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Latest.cs
new file mode 100644
index 00000000..d45eaa35
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static void* MyFunction()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Latest.xml
new file mode 100644
index 00000000..68b582fb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Preview.cs
new file mode 100644
index 00000000..d45eaa35
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static void* MyFunction()
+ {
+ return null;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Preview.xml
new file mode 100644
index 00000000..68b582fb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnCXXNullPtrTest.Windows.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void*
+ return null;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Compatible.cs
new file mode 100644
index 00000000..d9932ae3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ return;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Compatible.xml
new file mode 100644
index 00000000..3336bc32
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+ return;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Default.cs
new file mode 100644
index 00000000..d9932ae3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ return;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Default.xml
new file mode 100644
index 00000000..3336bc32
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+ return;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Latest.cs
new file mode 100644
index 00000000..d9932ae3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ return;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Latest.xml
new file mode 100644
index 00000000..3336bc32
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+ return;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Preview.cs
new file mode 100644
index 00000000..d9932ae3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ return;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Preview.xml
new file mode 100644
index 00000000..3336bc32
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Unix.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+ return;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Compatible.cs
new file mode 100644
index 00000000..d9932ae3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ return;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Compatible.xml
new file mode 100644
index 00000000..3336bc32
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+ return;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Default.cs
new file mode 100644
index 00000000..d9932ae3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ return;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Default.xml
new file mode 100644
index 00000000..3336bc32
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+ return;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Latest.cs
new file mode 100644
index 00000000..d9932ae3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ return;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Latest.xml
new file mode 100644
index 00000000..3336bc32
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+ return;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Preview.cs
new file mode 100644
index 00000000..d9932ae3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static void MyFunction()
+ {
+ return;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Preview.xml
new file mode 100644
index 00000000..3336bc32
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnEmptyTest.Windows.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ void
+ return;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Compatible.cs
new file mode 100644
index 00000000..d4df0dce
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static double MyFunction()
+ {
+ return 3.14f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Compatible.xml
new file mode 100644
index 00000000..5d91fb08
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ double
+ return 3.14f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Default.cs
new file mode 100644
index 00000000..d4df0dce
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static double MyFunction()
+ {
+ return 3.14f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Default.xml
new file mode 100644
index 00000000..5d91fb08
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ double
+ return 3.14f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Latest.cs
new file mode 100644
index 00000000..d4df0dce
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static double MyFunction()
+ {
+ return 3.14f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Latest.xml
new file mode 100644
index 00000000..5d91fb08
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ double
+ return 3.14f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Preview.cs
new file mode 100644
index 00000000..d4df0dce
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static double MyFunction()
+ {
+ return 3.14f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Preview.xml
new file mode 100644
index 00000000..5d91fb08
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Unix.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ double
+ return 3.14f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Compatible.cs
new file mode 100644
index 00000000..d4df0dce
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static double MyFunction()
+ {
+ return 3.14f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Compatible.xml
new file mode 100644
index 00000000..5d91fb08
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ double
+ return 3.14f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Default.cs
new file mode 100644
index 00000000..d4df0dce
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static double MyFunction()
+ {
+ return 3.14f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Default.xml
new file mode 100644
index 00000000..5d91fb08
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ double
+ return 3.14f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Latest.cs
new file mode 100644
index 00000000..d4df0dce
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static double MyFunction()
+ {
+ return 3.14f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Latest.xml
new file mode 100644
index 00000000..5d91fb08
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ double
+ return 3.14f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Preview.cs
new file mode 100644
index 00000000..d4df0dce
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static double MyFunction()
+ {
+ return 3.14f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Preview.xml
new file mode 100644
index 00000000..5d91fb08
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.3.14f.Windows.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ double
+ return 3.14f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Compatible.cs
new file mode 100644
index 00000000..108a0b26
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static double MyFunction()
+ {
+ return 5e-1f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Compatible.xml
new file mode 100644
index 00000000..8622133a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ double
+ return 5e-1f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Default.cs
new file mode 100644
index 00000000..108a0b26
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static double MyFunction()
+ {
+ return 5e-1f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Default.xml
new file mode 100644
index 00000000..8622133a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ double
+ return 5e-1f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Latest.cs
new file mode 100644
index 00000000..108a0b26
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static double MyFunction()
+ {
+ return 5e-1f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Latest.xml
new file mode 100644
index 00000000..8622133a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ double
+ return 5e-1f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Preview.cs
new file mode 100644
index 00000000..108a0b26
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static double MyFunction()
+ {
+ return 5e-1f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Preview.xml
new file mode 100644
index 00000000..8622133a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Unix.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ double
+ return 5e-1f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Compatible.cs
new file mode 100644
index 00000000..108a0b26
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static double MyFunction()
+ {
+ return 5e-1f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Compatible.xml
new file mode 100644
index 00000000..8622133a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ double
+ return 5e-1f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Default.cs
new file mode 100644
index 00000000..108a0b26
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static double MyFunction()
+ {
+ return 5e-1f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Default.xml
new file mode 100644
index 00000000..8622133a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ double
+ return 5e-1f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Latest.cs
new file mode 100644
index 00000000..108a0b26
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static double MyFunction()
+ {
+ return 5e-1f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Latest.xml
new file mode 100644
index 00000000..8622133a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ double
+ return 5e-1f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Preview.cs
new file mode 100644
index 00000000..108a0b26
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static double MyFunction()
+ {
+ return 5e-1f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Preview.xml
new file mode 100644
index 00000000..8622133a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralDoubleTest.5e-1f.Windows.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ double
+ return 5e-1f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Compatible.cs
new file mode 100644
index 00000000..db455ead
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static float MyFunction()
+ {
+ return 3.14f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Compatible.xml
new file mode 100644
index 00000000..8cf7ce22
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ float
+ return 3.14f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Default.cs
new file mode 100644
index 00000000..db455ead
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static float MyFunction()
+ {
+ return 3.14f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Default.xml
new file mode 100644
index 00000000..8cf7ce22
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ float
+ return 3.14f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Latest.cs
new file mode 100644
index 00000000..db455ead
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static float MyFunction()
+ {
+ return 3.14f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Latest.xml
new file mode 100644
index 00000000..8cf7ce22
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ float
+ return 3.14f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Preview.cs
new file mode 100644
index 00000000..db455ead
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static float MyFunction()
+ {
+ return 3.14f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Preview.xml
new file mode 100644
index 00000000..8cf7ce22
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Unix.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ float
+ return 3.14f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Compatible.cs
new file mode 100644
index 00000000..db455ead
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static float MyFunction()
+ {
+ return 3.14f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Compatible.xml
new file mode 100644
index 00000000..8cf7ce22
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ float
+ return 3.14f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Default.cs
new file mode 100644
index 00000000..db455ead
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static float MyFunction()
+ {
+ return 3.14f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Default.xml
new file mode 100644
index 00000000..8cf7ce22
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ float
+ return 3.14f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Latest.cs
new file mode 100644
index 00000000..db455ead
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static float MyFunction()
+ {
+ return 3.14f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Latest.xml
new file mode 100644
index 00000000..8cf7ce22
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ float
+ return 3.14f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Preview.cs
new file mode 100644
index 00000000..db455ead
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static float MyFunction()
+ {
+ return 3.14f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Preview.xml
new file mode 100644
index 00000000..8cf7ce22
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.3.14f.Windows.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ float
+ return 3.14f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Compatible.cs
new file mode 100644
index 00000000..1b98eab9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static float MyFunction()
+ {
+ return 5e-1f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Compatible.xml
new file mode 100644
index 00000000..faeff00a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ float
+ return 5e-1f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Default.cs
new file mode 100644
index 00000000..1b98eab9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static float MyFunction()
+ {
+ return 5e-1f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Default.xml
new file mode 100644
index 00000000..faeff00a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ float
+ return 5e-1f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Latest.cs
new file mode 100644
index 00000000..1b98eab9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static float MyFunction()
+ {
+ return 5e-1f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Latest.xml
new file mode 100644
index 00000000..faeff00a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ float
+ return 5e-1f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Preview.cs
new file mode 100644
index 00000000..1b98eab9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static float MyFunction()
+ {
+ return 5e-1f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Preview.xml
new file mode 100644
index 00000000..faeff00a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Unix.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ float
+ return 5e-1f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Compatible.cs
new file mode 100644
index 00000000..1b98eab9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static float MyFunction()
+ {
+ return 5e-1f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Compatible.xml
new file mode 100644
index 00000000..faeff00a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ float
+ return 5e-1f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Default.cs
new file mode 100644
index 00000000..1b98eab9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static float MyFunction()
+ {
+ return 5e-1f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Default.xml
new file mode 100644
index 00000000..faeff00a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ float
+ return 5e-1f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Latest.cs
new file mode 100644
index 00000000..1b98eab9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static float MyFunction()
+ {
+ return 5e-1f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Latest.xml
new file mode 100644
index 00000000..faeff00a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ float
+ return 5e-1f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Preview.cs
new file mode 100644
index 00000000..1b98eab9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static float MyFunction()
+ {
+ return 5e-1f;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Preview.xml
new file mode 100644
index 00000000..faeff00a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnFloatingLiteralSingleTest.5e-1f.Windows.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ float
+ return 5e-1f;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Compatible.cs
new file mode 100644
index 00000000..dc571a06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction()
+ {
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Compatible.xml
new file mode 100644
index 00000000..76ceb89c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ int
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Default.cs
new file mode 100644
index 00000000..dc571a06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction()
+ {
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Default.xml
new file mode 100644
index 00000000..76ceb89c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ int
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Latest.cs
new file mode 100644
index 00000000..dc571a06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction()
+ {
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Latest.xml
new file mode 100644
index 00000000..76ceb89c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ int
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Preview.cs
new file mode 100644
index 00000000..dc571a06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction()
+ {
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Preview.xml
new file mode 100644
index 00000000..76ceb89c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Unix.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ int
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Compatible.cs
new file mode 100644
index 00000000..dc571a06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction()
+ {
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Compatible.xml
new file mode 100644
index 00000000..76ceb89c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Compatible.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ int
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Default.cs
new file mode 100644
index 00000000..dc571a06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction()
+ {
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Default.xml
new file mode 100644
index 00000000..76ceb89c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Default.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ int
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Latest.cs
new file mode 100644
index 00000000..dc571a06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction()
+ {
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Latest.xml
new file mode 100644
index 00000000..76ceb89c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Latest.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ int
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Preview.cs
new file mode 100644
index 00000000..dc571a06
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction()
+ {
+ return -1;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Preview.xml
new file mode 100644
index 00000000..76ceb89c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnIntegerLiteralInt32Test.Windows.Preview.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+ int
+ return -1;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Compatible.cs
new file mode 100644
index 00000000..bb51113c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Compatible.cs
@@ -0,0 +1,21 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public double r;
+
+ public double g;
+
+ public double b;
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction()
+ {
+ MyStruct myStruct = new MyStruct();
+
+ return myStruct;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Compatible.xml
new file mode 100644
index 00000000..e2c85b7e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Compatible.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+ double
+
+
+ double
+
+
+ double
+
+
+
+
+ MyStruct
+ MyStruct myStruct = new MyStruct();
+
+ return myStruct;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Default.cs
new file mode 100644
index 00000000..bb51113c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Default.cs
@@ -0,0 +1,21 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public double r;
+
+ public double g;
+
+ public double b;
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction()
+ {
+ MyStruct myStruct = new MyStruct();
+
+ return myStruct;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Default.xml
new file mode 100644
index 00000000..e2c85b7e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Default.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+ double
+
+
+ double
+
+
+ double
+
+
+
+
+ MyStruct
+ MyStruct myStruct = new MyStruct();
+
+ return myStruct;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Latest.cs
new file mode 100644
index 00000000..bb51113c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Latest.cs
@@ -0,0 +1,21 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public double r;
+
+ public double g;
+
+ public double b;
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction()
+ {
+ MyStruct myStruct = new MyStruct();
+
+ return myStruct;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Latest.xml
new file mode 100644
index 00000000..e2c85b7e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Latest.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+ double
+
+
+ double
+
+
+ double
+
+
+
+
+ MyStruct
+ MyStruct myStruct = new MyStruct();
+
+ return myStruct;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Preview.cs
new file mode 100644
index 00000000..bb51113c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Preview.cs
@@ -0,0 +1,21 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public double r;
+
+ public double g;
+
+ public double b;
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction()
+ {
+ MyStruct myStruct = new MyStruct();
+
+ return myStruct;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Preview.xml
new file mode 100644
index 00000000..e2c85b7e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Unix.Preview.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+ double
+
+
+ double
+
+
+ double
+
+
+
+
+ MyStruct
+ MyStruct myStruct = new MyStruct();
+
+ return myStruct;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Compatible.cs
new file mode 100644
index 00000000..bb51113c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Compatible.cs
@@ -0,0 +1,21 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public double r;
+
+ public double g;
+
+ public double b;
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction()
+ {
+ MyStruct myStruct = new MyStruct();
+
+ return myStruct;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Compatible.xml
new file mode 100644
index 00000000..e2c85b7e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Compatible.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+ double
+
+
+ double
+
+
+ double
+
+
+
+
+ MyStruct
+ MyStruct myStruct = new MyStruct();
+
+ return myStruct;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Default.cs
new file mode 100644
index 00000000..bb51113c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Default.cs
@@ -0,0 +1,21 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public double r;
+
+ public double g;
+
+ public double b;
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction()
+ {
+ MyStruct myStruct = new MyStruct();
+
+ return myStruct;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Default.xml
new file mode 100644
index 00000000..e2c85b7e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Default.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+ double
+
+
+ double
+
+
+ double
+
+
+
+
+ MyStruct
+ MyStruct myStruct = new MyStruct();
+
+ return myStruct;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Latest.cs
new file mode 100644
index 00000000..bb51113c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Latest.cs
@@ -0,0 +1,21 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public double r;
+
+ public double g;
+
+ public double b;
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction()
+ {
+ MyStruct myStruct = new MyStruct();
+
+ return myStruct;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Latest.xml
new file mode 100644
index 00000000..e2c85b7e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Latest.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+ double
+
+
+ double
+
+
+ double
+
+
+
+
+ MyStruct
+ MyStruct myStruct = new MyStruct();
+
+ return myStruct;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Preview.cs
new file mode 100644
index 00000000..bb51113c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Preview.cs
@@ -0,0 +1,21 @@
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ public double r;
+
+ public double g;
+
+ public double b;
+ }
+
+ public static partial class Methods
+ {
+ public static MyStruct MyFunction()
+ {
+ MyStruct myStruct = new MyStruct();
+
+ return myStruct;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Preview.xml
new file mode 100644
index 00000000..e2c85b7e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.ReturnStructTest.Windows.Preview.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+ double
+
+
+ double
+
+
+ double
+
+
+
+
+ MyStruct
+ MyStruct myStruct = new MyStruct();
+
+ return myStruct;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Compatible.cs
new file mode 100644
index 00000000..213265e2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Compatible.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Compatible.xml
new file mode 100644
index 00000000..076dae80
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Compatible.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Default.cs
new file mode 100644
index 00000000..213265e2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Default.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Default.xml
new file mode 100644
index 00000000..076dae80
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Default.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Latest.cs
new file mode 100644
index 00000000..213265e2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Latest.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Latest.xml
new file mode 100644
index 00000000..076dae80
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Latest.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Preview.cs
new file mode 100644
index 00000000..213265e2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Preview.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Preview.xml
new file mode 100644
index 00000000..076dae80
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Unix.Preview.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Compatible.cs
new file mode 100644
index 00000000..213265e2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Compatible.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Compatible.xml
new file mode 100644
index 00000000..076dae80
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Compatible.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Default.cs
new file mode 100644
index 00000000..213265e2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Default.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Default.xml
new file mode 100644
index 00000000..076dae80
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Default.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Latest.cs
new file mode 100644
index 00000000..213265e2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Latest.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Latest.xml
new file mode 100644
index 00000000..076dae80
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Latest.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Preview.cs
new file mode 100644
index 00000000..213265e2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Preview.cs
@@ -0,0 +1,24 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Preview.xml
new file mode 100644
index 00000000..076dae80
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchNonCompoundTest.Windows.Preview.xml
@@ -0,0 +1,28 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Compatible.cs
new file mode 100644
index 00000000..e5def936
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Compatible.cs
@@ -0,0 +1,16 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Compatible.xml
new file mode 100644
index 00000000..0acdee5c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Compatible.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Default.cs
new file mode 100644
index 00000000..e5def936
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Default.cs
@@ -0,0 +1,16 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Default.xml
new file mode 100644
index 00000000..0acdee5c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Default.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Latest.cs
new file mode 100644
index 00000000..e5def936
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Latest.cs
@@ -0,0 +1,16 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Latest.xml
new file mode 100644
index 00000000..0acdee5c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Latest.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Preview.cs
new file mode 100644
index 00000000..e5def936
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Preview.cs
@@ -0,0 +1,16 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Preview.xml
new file mode 100644
index 00000000..0acdee5c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Unix.Preview.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Compatible.cs
new file mode 100644
index 00000000..e5def936
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Compatible.cs
@@ -0,0 +1,16 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Compatible.xml
new file mode 100644
index 00000000..0acdee5c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Compatible.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Default.cs
new file mode 100644
index 00000000..e5def936
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Default.cs
@@ -0,0 +1,16 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Default.xml
new file mode 100644
index 00000000..0acdee5c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Default.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Latest.cs
new file mode 100644
index 00000000..e5def936
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Latest.cs
@@ -0,0 +1,16 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Latest.xml
new file mode 100644
index 00000000..0acdee5c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Latest.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Preview.cs
new file mode 100644
index 00000000..e5def936
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Preview.cs
@@ -0,0 +1,16 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Preview.xml
new file mode 100644
index 00000000..0acdee5c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.SwitchTest.Windows.Preview.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+ int
+
+ int
+
+ switch (value)
+ {
+ default:
+ {
+ return 0;
+ }
+ }
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Compatible.cs
new file mode 100644
index 00000000..95cc1940
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(int value)
+ {
+ return &value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Compatible.xml
new file mode 100644
index 00000000..0f4fadaa
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ int
+
+ return &value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Default.cs
new file mode 100644
index 00000000..95cc1940
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(int value)
+ {
+ return &value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Default.xml
new file mode 100644
index 00000000..0f4fadaa
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ int
+
+ return &value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Latest.cs
new file mode 100644
index 00000000..95cc1940
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(int value)
+ {
+ return &value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Latest.xml
new file mode 100644
index 00000000..0f4fadaa
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ int
+
+ return &value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Preview.cs
new file mode 100644
index 00000000..95cc1940
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(int value)
+ {
+ return &value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Preview.xml
new file mode 100644
index 00000000..0f4fadaa
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Unix.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ int
+
+ return &value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Compatible.cs
new file mode 100644
index 00000000..95cc1940
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(int value)
+ {
+ return &value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Compatible.xml
new file mode 100644
index 00000000..0f4fadaa
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ int
+
+ return &value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Default.cs
new file mode 100644
index 00000000..95cc1940
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(int value)
+ {
+ return &value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Default.xml
new file mode 100644
index 00000000..0f4fadaa
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ int
+
+ return &value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Latest.cs
new file mode 100644
index 00000000..95cc1940
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(int value)
+ {
+ return &value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Latest.xml
new file mode 100644
index 00000000..0f4fadaa
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ int
+
+ return &value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Preview.cs
new file mode 100644
index 00000000..95cc1940
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int* MyFunction(int value)
+ {
+ return &value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Preview.xml
new file mode 100644
index 00000000..0f4fadaa
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorAddrOfTest.Windows.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int*
+
+ int
+
+ return &value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Compatible.cs
new file mode 100644
index 00000000..db32f4eb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction(int* value)
+ {
+ return *value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Compatible.xml
new file mode 100644
index 00000000..c4af7b6f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int*
+
+ return *value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Default.cs
new file mode 100644
index 00000000..db32f4eb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction(int* value)
+ {
+ return *value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Default.xml
new file mode 100644
index 00000000..c4af7b6f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int*
+
+ return *value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Latest.cs
new file mode 100644
index 00000000..db32f4eb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction(int* value)
+ {
+ return *value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Latest.xml
new file mode 100644
index 00000000..c4af7b6f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int*
+
+ return *value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Preview.cs
new file mode 100644
index 00000000..db32f4eb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction(int* value)
+ {
+ return *value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Preview.xml
new file mode 100644
index 00000000..c4af7b6f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Unix.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int*
+
+ return *value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Compatible.cs
new file mode 100644
index 00000000..db32f4eb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction(int* value)
+ {
+ return *value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Compatible.xml
new file mode 100644
index 00000000..c4af7b6f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int*
+
+ return *value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Default.cs
new file mode 100644
index 00000000..db32f4eb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction(int* value)
+ {
+ return *value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Default.xml
new file mode 100644
index 00000000..c4af7b6f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int*
+
+ return *value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Latest.cs
new file mode 100644
index 00000000..db32f4eb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction(int* value)
+ {
+ return *value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Latest.xml
new file mode 100644
index 00000000..c4af7b6f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int*
+
+ return *value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Preview.cs
new file mode 100644
index 00000000..db32f4eb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ public static int MyFunction(int* value)
+ {
+ return *value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Preview.xml
new file mode 100644
index 00000000..c4af7b6f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorDerefTest.Windows.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int*
+
+ return *value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Compatible.cs
new file mode 100644
index 00000000..30ce0438
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool value)
+ {
+ return !value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Compatible.xml
new file mode 100644
index 00000000..aa1d0d9e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ bool
+
+ bool
+
+ return !value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Default.cs
new file mode 100644
index 00000000..30ce0438
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool value)
+ {
+ return !value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Default.xml
new file mode 100644
index 00000000..aa1d0d9e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ bool
+
+ bool
+
+ return !value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Latest.cs
new file mode 100644
index 00000000..30ce0438
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool value)
+ {
+ return !value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Latest.xml
new file mode 100644
index 00000000..aa1d0d9e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ bool
+
+ bool
+
+ return !value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Preview.cs
new file mode 100644
index 00000000..30ce0438
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool value)
+ {
+ return !value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Preview.xml
new file mode 100644
index 00000000..aa1d0d9e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Unix.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ bool
+
+ bool
+
+ return !value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Compatible.cs
new file mode 100644
index 00000000..30ce0438
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool value)
+ {
+ return !value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Compatible.xml
new file mode 100644
index 00000000..aa1d0d9e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ bool
+
+ bool
+
+ return !value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Default.cs
new file mode 100644
index 00000000..30ce0438
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool value)
+ {
+ return !value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Default.xml
new file mode 100644
index 00000000..aa1d0d9e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ bool
+
+ bool
+
+ return !value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Latest.cs
new file mode 100644
index 00000000..30ce0438
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool value)
+ {
+ return !value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Latest.xml
new file mode 100644
index 00000000..aa1d0d9e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ bool
+
+ bool
+
+ return !value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Preview.cs
new file mode 100644
index 00000000..30ce0438
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static bool MyFunction(bool value)
+ {
+ return !value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Preview.xml
new file mode 100644
index 00000000..aa1d0d9e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorLogicalNotTest.Windows.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ bool
+
+ bool
+
+ return !value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Compatible.cs
new file mode 100644
index 00000000..4464bc18
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return value++;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Compatible.xml
new file mode 100644
index 00000000..30c8561e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return value++;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Default.cs
new file mode 100644
index 00000000..4464bc18
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return value++;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Default.xml
new file mode 100644
index 00000000..30c8561e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return value++;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Latest.cs
new file mode 100644
index 00000000..4464bc18
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return value++;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Latest.xml
new file mode 100644
index 00000000..30c8561e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return value++;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Preview.cs
new file mode 100644
index 00000000..4464bc18
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return value++;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Preview.xml
new file mode 100644
index 00000000..30c8561e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Unix.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return value++;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Compatible.cs
new file mode 100644
index 00000000..4464bc18
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return value++;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Compatible.xml
new file mode 100644
index 00000000..30c8561e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return value++;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Default.cs
new file mode 100644
index 00000000..4464bc18
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return value++;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Default.xml
new file mode 100644
index 00000000..30c8561e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return value++;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Latest.cs
new file mode 100644
index 00000000..4464bc18
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return value++;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Latest.xml
new file mode 100644
index 00000000..30c8561e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return value++;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Preview.cs
new file mode 100644
index 00000000..4464bc18
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return value++;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Preview.xml
new file mode 100644
index 00000000..30c8561e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.++.Windows.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return value++;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Compatible.cs
new file mode 100644
index 00000000..513691d8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return value--;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Compatible.xml
new file mode 100644
index 00000000..2b060edb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return value--;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Default.cs
new file mode 100644
index 00000000..513691d8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return value--;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Default.xml
new file mode 100644
index 00000000..2b060edb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return value--;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Latest.cs
new file mode 100644
index 00000000..513691d8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return value--;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Latest.xml
new file mode 100644
index 00000000..2b060edb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return value--;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Preview.cs
new file mode 100644
index 00000000..513691d8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return value--;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Preview.xml
new file mode 100644
index 00000000..2b060edb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Unix.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return value--;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Compatible.cs
new file mode 100644
index 00000000..513691d8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return value--;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Compatible.xml
new file mode 100644
index 00000000..2b060edb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return value--;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Default.cs
new file mode 100644
index 00000000..513691d8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return value--;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Default.xml
new file mode 100644
index 00000000..2b060edb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return value--;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Latest.cs
new file mode 100644
index 00000000..513691d8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return value--;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Latest.xml
new file mode 100644
index 00000000..2b060edb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return value--;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Preview.cs
new file mode 100644
index 00000000..513691d8
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return value--;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Preview.xml
new file mode 100644
index 00000000..2b060edb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPostfixTest.--.Windows.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return value--;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Compatible.cs
new file mode 100644
index 00000000..5401aa5c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return ++value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Compatible.xml
new file mode 100644
index 00000000..829c87e0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return ++value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Default.cs
new file mode 100644
index 00000000..5401aa5c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return ++value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Default.xml
new file mode 100644
index 00000000..829c87e0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return ++value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Latest.cs
new file mode 100644
index 00000000..5401aa5c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return ++value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Latest.xml
new file mode 100644
index 00000000..829c87e0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return ++value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Preview.cs
new file mode 100644
index 00000000..5401aa5c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return ++value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Preview.xml
new file mode 100644
index 00000000..829c87e0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Unix.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return ++value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Compatible.cs
new file mode 100644
index 00000000..5401aa5c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return ++value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Compatible.xml
new file mode 100644
index 00000000..829c87e0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return ++value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Default.cs
new file mode 100644
index 00000000..5401aa5c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return ++value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Default.xml
new file mode 100644
index 00000000..829c87e0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return ++value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Latest.cs
new file mode 100644
index 00000000..5401aa5c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return ++value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Latest.xml
new file mode 100644
index 00000000..829c87e0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return ++value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Preview.cs
new file mode 100644
index 00000000..5401aa5c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return ++value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Preview.xml
new file mode 100644
index 00000000..829c87e0
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.++.Windows.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return ++value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Compatible.cs
new file mode 100644
index 00000000..ed8beab6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return +value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Compatible.xml
new file mode 100644
index 00000000..e5f539ae
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return +value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Default.cs
new file mode 100644
index 00000000..ed8beab6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return +value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Default.xml
new file mode 100644
index 00000000..e5f539ae
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return +value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Latest.cs
new file mode 100644
index 00000000..ed8beab6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return +value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Latest.xml
new file mode 100644
index 00000000..e5f539ae
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return +value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Preview.cs
new file mode 100644
index 00000000..ed8beab6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return +value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Preview.xml
new file mode 100644
index 00000000..e5f539ae
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Unix.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return +value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Compatible.cs
new file mode 100644
index 00000000..ed8beab6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return +value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Compatible.xml
new file mode 100644
index 00000000..e5f539ae
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return +value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Default.cs
new file mode 100644
index 00000000..ed8beab6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return +value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Default.xml
new file mode 100644
index 00000000..e5f539ae
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return +value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Latest.cs
new file mode 100644
index 00000000..ed8beab6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return +value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Latest.xml
new file mode 100644
index 00000000..e5f539ae
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return +value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Preview.cs
new file mode 100644
index 00000000..ed8beab6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return +value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Preview.xml
new file mode 100644
index 00000000..e5f539ae
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.+.Windows.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return +value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Compatible.cs
new file mode 100644
index 00000000..ce701c08
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return --value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Compatible.xml
new file mode 100644
index 00000000..4d04e391
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return --value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Default.cs
new file mode 100644
index 00000000..ce701c08
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return --value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Default.xml
new file mode 100644
index 00000000..4d04e391
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return --value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Latest.cs
new file mode 100644
index 00000000..ce701c08
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return --value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Latest.xml
new file mode 100644
index 00000000..4d04e391
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return --value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Preview.cs
new file mode 100644
index 00000000..ce701c08
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return --value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Preview.xml
new file mode 100644
index 00000000..4d04e391
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Unix.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return --value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Compatible.cs
new file mode 100644
index 00000000..ce701c08
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return --value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Compatible.xml
new file mode 100644
index 00000000..4d04e391
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return --value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Default.cs
new file mode 100644
index 00000000..ce701c08
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return --value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Default.xml
new file mode 100644
index 00000000..4d04e391
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return --value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Latest.cs
new file mode 100644
index 00000000..ce701c08
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return --value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Latest.xml
new file mode 100644
index 00000000..4d04e391
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return --value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Preview.cs
new file mode 100644
index 00000000..ce701c08
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return --value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Preview.xml
new file mode 100644
index 00000000..4d04e391
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.--.Windows.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return --value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Compatible.cs
new file mode 100644
index 00000000..6ba428f2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return -value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Compatible.xml
new file mode 100644
index 00000000..ef280ce3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return -value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Default.cs
new file mode 100644
index 00000000..6ba428f2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return -value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Default.xml
new file mode 100644
index 00000000..ef280ce3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return -value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Latest.cs
new file mode 100644
index 00000000..6ba428f2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return -value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Latest.xml
new file mode 100644
index 00000000..ef280ce3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return -value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Preview.cs
new file mode 100644
index 00000000..6ba428f2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return -value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Preview.xml
new file mode 100644
index 00000000..ef280ce3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Unix.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return -value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Compatible.cs
new file mode 100644
index 00000000..6ba428f2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return -value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Compatible.xml
new file mode 100644
index 00000000..ef280ce3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return -value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Default.cs
new file mode 100644
index 00000000..6ba428f2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return -value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Default.xml
new file mode 100644
index 00000000..ef280ce3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return -value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Latest.cs
new file mode 100644
index 00000000..6ba428f2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return -value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Latest.xml
new file mode 100644
index 00000000..ef280ce3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return -value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Preview.cs
new file mode 100644
index 00000000..6ba428f2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return -value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Preview.xml
new file mode 100644
index 00000000..ef280ce3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.-.Windows.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return -value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Compatible.cs
new file mode 100644
index 00000000..08e3ad37
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return ~value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Compatible.xml
new file mode 100644
index 00000000..2052122e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return ~value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Default.cs
new file mode 100644
index 00000000..08e3ad37
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return ~value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Default.xml
new file mode 100644
index 00000000..2052122e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return ~value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Latest.cs
new file mode 100644
index 00000000..08e3ad37
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return ~value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Latest.xml
new file mode 100644
index 00000000..2052122e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return ~value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Preview.cs
new file mode 100644
index 00000000..08e3ad37
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return ~value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Preview.xml
new file mode 100644
index 00000000..2052122e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Unix.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return ~value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Compatible.cs
new file mode 100644
index 00000000..08e3ad37
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return ~value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Compatible.xml
new file mode 100644
index 00000000..2052122e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Compatible.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return ~value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Default.cs
new file mode 100644
index 00000000..08e3ad37
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Default.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return ~value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Default.xml
new file mode 100644
index 00000000..2052122e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return ~value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Latest.cs
new file mode 100644
index 00000000..08e3ad37
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Latest.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return ~value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Latest.xml
new file mode 100644
index 00000000..2052122e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Latest.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return ~value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Preview.cs
new file mode 100644
index 00000000..08e3ad37
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Preview.cs
@@ -0,0 +1,10 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int value)
+ {
+ return ~value;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Preview.xml
new file mode 100644
index 00000000..2052122e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.UnaryOperatorPrefixTest.~.Windows.Preview.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+ int
+
+ int
+
+ return ~value;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Compatible.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Compatible.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Compatible.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Compatible.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Default.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Default.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Default.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Default.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Latest.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Latest.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Latest.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Latest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Preview.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Preview.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Preview.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Unix.Preview.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Compatible.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Compatible.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Compatible.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Compatible.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Default.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Default.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Default.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Default.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Latest.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Latest.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Latest.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Latest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Preview.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Preview.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Preview.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileNonCompoundTest.Windows.Preview.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Compatible.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Compatible.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Compatible.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Compatible.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Default.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Default.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Default.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Default.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Latest.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Latest.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Latest.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Latest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Preview.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Preview.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Preview.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Unix.Preview.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Compatible.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Compatible.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Compatible.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Compatible.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Default.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Default.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Default.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Default.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Latest.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Latest.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Latest.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Latest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Preview.cs
new file mode 100644
index 00000000..6b312efe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Preview.cs
@@ -0,0 +1,17 @@
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ public static int MyFunction(int count)
+ {
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+ }
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Preview.xml
new file mode 100644
index 00000000..5ab45ec1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationBodyImportTest.WhileTest.Windows.Preview.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ int
+
+ int
+
+ int i = 0;
+
+ while (i < count)
+ {
+ i++;
+ }
+
+ return i;
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Compatible.cs
new file mode 100644
index 00000000..cf956dad
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("const float[4]")] float* color);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Compatible.xml
new file mode 100644
index 00000000..124f6df9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Compatible.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ float*
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Default.cs
new file mode 100644
index 00000000..cf956dad
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("const float[4]")] float* color);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Default.xml
new file mode 100644
index 00000000..124f6df9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Default.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ float*
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Latest.cs
new file mode 100644
index 00000000..cf956dad
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("const float[4]")] float* color);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Latest.xml
new file mode 100644
index 00000000..124f6df9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Latest.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ float*
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Preview.cs
new file mode 100644
index 00000000..cf956dad
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("const float[4]")] float* color);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Preview.xml
new file mode 100644
index 00000000..124f6df9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Unix.Preview.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ float*
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Compatible.cs
new file mode 100644
index 00000000..cf956dad
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("const float[4]")] float* color);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Compatible.xml
new file mode 100644
index 00000000..124f6df9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Compatible.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ float*
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Default.cs
new file mode 100644
index 00000000..cf956dad
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("const float[4]")] float* color);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Default.xml
new file mode 100644
index 00000000..124f6df9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Default.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ float*
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Latest.cs
new file mode 100644
index 00000000..cf956dad
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("const float[4]")] float* color);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Latest.xml
new file mode 100644
index 00000000..124f6df9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Latest.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ float*
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Preview.cs
new file mode 100644
index 00000000..cf956dad
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("const float[4]")] float* color);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Preview.xml
new file mode 100644
index 00000000..124f6df9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.ArrayParameterTest.Windows.Preview.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ float*
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Compatible.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Compatible.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Compatible.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Default.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Default.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Latest.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Latest.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Latest.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Preview.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Preview.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Unix.Preview.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Compatible.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Compatible.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Compatible.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Default.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Default.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Latest.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Latest.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Latest.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Preview.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Preview.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.BasicTest.Windows.Preview.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Compatible.cs
new file mode 100644
index 00000000..5aecb089
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Compatible.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("void (*)()")] IntPtr callback);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Compatible.xml
new file mode 100644
index 00000000..d5241fe5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Compatible.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ IntPtr
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Default.cs
new file mode 100644
index 00000000..cae5558f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("void (*)()")] delegate* unmanaged[Cdecl] callback);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Default.xml
new file mode 100644
index 00000000..1e150afd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Default.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Latest.cs
new file mode 100644
index 00000000..cae5558f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("void (*)()")] delegate* unmanaged[Cdecl] callback);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Latest.xml
new file mode 100644
index 00000000..1e150afd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Latest.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Preview.cs
new file mode 100644
index 00000000..cae5558f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("void (*)()")] delegate* unmanaged[Cdecl] callback);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Preview.xml
new file mode 100644
index 00000000..1e150afd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Unix.Preview.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Compatible.cs
new file mode 100644
index 00000000..5aecb089
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Compatible.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("void (*)()")] IntPtr callback);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Compatible.xml
new file mode 100644
index 00000000..d5241fe5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Compatible.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ IntPtr
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Default.cs
new file mode 100644
index 00000000..cae5558f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("void (*)()")] delegate* unmanaged[Cdecl] callback);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Default.xml
new file mode 100644
index 00000000..1e150afd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Default.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Latest.cs
new file mode 100644
index 00000000..cae5558f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("void (*)()")] delegate* unmanaged[Cdecl] callback);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Latest.xml
new file mode 100644
index 00000000..1e150afd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Latest.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Preview.cs
new file mode 100644
index 00000000..cae5558f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("void (*)()")] delegate* unmanaged[Cdecl] callback);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Preview.xml
new file mode 100644
index 00000000..1e150afd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.FunctionPointerParameterTest.Windows.Preview.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Unix.Compatible.cs
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Unix.Compatible.xml
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Unix.Default.cs
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Unix.Default.xml
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Unix.Latest.cs
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Unix.Latest.xml
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Unix.Preview.cs
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Unix.Preview.xml
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Windows.Compatible.cs
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Windows.Compatible.xml
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Windows.Default.cs
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Windows.Default.xml
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Windows.Latest.cs
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Windows.Latest.xml
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Windows.Preview.cs
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.IntrinsicsTest.Windows.Preview.xml
new file mode 100644
index 00000000..e69de29b
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Compatible.cs
new file mode 100644
index 00000000..c8c39e8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, EntryPoint = "_ZN11MyNamespace10MyFunctionEv", ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Compatible.xml
new file mode 100644
index 00000000..3d7417e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Compatible.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Default.cs
new file mode 100644
index 00000000..c8c39e8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, EntryPoint = "_ZN11MyNamespace10MyFunctionEv", ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Default.xml
new file mode 100644
index 00000000..3d7417e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Latest.cs
new file mode 100644
index 00000000..c8c39e8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, EntryPoint = "_ZN11MyNamespace10MyFunctionEv", ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Latest.xml
new file mode 100644
index 00000000..3d7417e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Latest.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Preview.cs
new file mode 100644
index 00000000..c8c39e8f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, EntryPoint = "_ZN11MyNamespace10MyFunctionEv", ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Preview.xml
new file mode 100644
index 00000000..3d7417e1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Unix.Preview.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Compatible.cs
new file mode 100644
index 00000000..4e9cf387
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?MyFunction@MyNamespace@@YAXXZ", ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Compatible.xml
new file mode 100644
index 00000000..106886c3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Compatible.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Default.cs
new file mode 100644
index 00000000..4e9cf387
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?MyFunction@MyNamespace@@YAXXZ", ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Default.xml
new file mode 100644
index 00000000..106886c3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Latest.cs
new file mode 100644
index 00000000..4e9cf387
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?MyFunction@MyNamespace@@YAXXZ", ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Latest.xml
new file mode 100644
index 00000000..106886c3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Latest.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Preview.cs
new file mode 100644
index 00000000..4e9cf387
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, EntryPoint = "?MyFunction@MyNamespace@@YAXXZ", ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Preview.xml
new file mode 100644
index 00000000..106886c3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NamespaceTest.Windows.Preview.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Compatible.cs
new file mode 100644
index 00000000..110bdece
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Compatible.xml
new file mode 100644
index 00000000..3467d386
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Compatible.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Default.cs
new file mode 100644
index 00000000..110bdece
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Default.xml
new file mode 100644
index 00000000..3467d386
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Latest.cs
new file mode 100644
index 00000000..110bdece
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Latest.xml
new file mode 100644
index 00000000..3467d386
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Latest.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Preview.cs
new file mode 100644
index 00000000..110bdece
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Preview.xml
new file mode 100644
index 00000000..3467d386
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Unix.Preview.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Compatible.cs
new file mode 100644
index 00000000..110bdece
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Compatible.xml
new file mode 100644
index 00000000..3467d386
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Compatible.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Default.cs
new file mode 100644
index 00000000..110bdece
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Default.xml
new file mode 100644
index 00000000..3467d386
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Latest.cs
new file mode 100644
index 00000000..110bdece
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Latest.xml
new file mode 100644
index 00000000..3467d386
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Latest.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Preview.cs
new file mode 100644
index 00000000..110bdece
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Preview.xml
new file mode 100644
index 00000000..3467d386
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.NoLibraryPathTest.Windows.Preview.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Compatible.cs
new file mode 100644
index 00000000..4f6962a9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(double value = 1.0);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Compatible.xml
new file mode 100644
index 00000000..434748da
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ double
+
+ 1.0
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Default.cs
new file mode 100644
index 00000000..4f6962a9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(double value = 1.0);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Default.xml
new file mode 100644
index 00000000..434748da
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ double
+
+ 1.0
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Latest.cs
new file mode 100644
index 00000000..4f6962a9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(double value = 1.0);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Latest.xml
new file mode 100644
index 00000000..434748da
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ double
+
+ 1.0
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Preview.cs
new file mode 100644
index 00000000..4f6962a9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(double value = 1.0);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Preview.xml
new file mode 100644
index 00000000..434748da
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Unix.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ double
+
+ 1.0
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Compatible.cs
new file mode 100644
index 00000000..4f6962a9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(double value = 1.0);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Compatible.xml
new file mode 100644
index 00000000..434748da
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ double
+
+ 1.0
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Default.cs
new file mode 100644
index 00000000..4f6962a9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(double value = 1.0);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Default.xml
new file mode 100644
index 00000000..434748da
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ double
+
+ 1.0
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Latest.cs
new file mode 100644
index 00000000..4f6962a9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(double value = 1.0);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Latest.xml
new file mode 100644
index 00000000..434748da
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ double
+
+ 1.0
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Preview.cs
new file mode 100644
index 00000000..4f6962a9
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(double value = 1.0);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Preview.xml
new file mode 100644
index 00000000..434748da
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.double.1.0.Windows.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ double
+
+ 1.0
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Compatible.cs
new file mode 100644
index 00000000..8fee3301
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(float value = 6.0f);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Compatible.xml
new file mode 100644
index 00000000..ad872907
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ float
+
+ 6.0f
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Default.cs
new file mode 100644
index 00000000..8fee3301
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(float value = 6.0f);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Default.xml
new file mode 100644
index 00000000..ad872907
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ float
+
+ 6.0f
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Latest.cs
new file mode 100644
index 00000000..8fee3301
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(float value = 6.0f);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Latest.xml
new file mode 100644
index 00000000..ad872907
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ float
+
+ 6.0f
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Preview.cs
new file mode 100644
index 00000000..8fee3301
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(float value = 6.0f);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Preview.xml
new file mode 100644
index 00000000..ad872907
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Unix.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ float
+
+ 6.0f
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Compatible.cs
new file mode 100644
index 00000000..8fee3301
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(float value = 6.0f);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Compatible.xml
new file mode 100644
index 00000000..ad872907
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ float
+
+ 6.0f
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Default.cs
new file mode 100644
index 00000000..8fee3301
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(float value = 6.0f);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Default.xml
new file mode 100644
index 00000000..ad872907
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ float
+
+ 6.0f
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Latest.cs
new file mode 100644
index 00000000..8fee3301
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(float value = 6.0f);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Latest.xml
new file mode 100644
index 00000000..ad872907
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ float
+
+ 6.0f
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Preview.cs
new file mode 100644
index 00000000..8fee3301
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(float value = 6.0f);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Preview.xml
new file mode 100644
index 00000000..ad872907
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.float.6.0f.Windows.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ float
+
+ 6.0f
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Compatible.cs
new file mode 100644
index 00000000..b457f236
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(int value = 3);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Compatible.xml
new file mode 100644
index 00000000..e1479328
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ int
+
+ 3
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Default.cs
new file mode 100644
index 00000000..b457f236
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(int value = 3);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Default.xml
new file mode 100644
index 00000000..e1479328
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ int
+
+ 3
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Latest.cs
new file mode 100644
index 00000000..b457f236
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(int value = 3);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Latest.xml
new file mode 100644
index 00000000..e1479328
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ int
+
+ 3
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Preview.cs
new file mode 100644
index 00000000..b457f236
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(int value = 3);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Preview.xml
new file mode 100644
index 00000000..e1479328
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Unix.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ int
+
+ 3
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Compatible.cs
new file mode 100644
index 00000000..b457f236
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(int value = 3);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Compatible.xml
new file mode 100644
index 00000000..e1479328
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ int
+
+ 3
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Default.cs
new file mode 100644
index 00000000..b457f236
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(int value = 3);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Default.xml
new file mode 100644
index 00000000..e1479328
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ int
+
+ 3
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Latest.cs
new file mode 100644
index 00000000..b457f236
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(int value = 3);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Latest.xml
new file mode 100644
index 00000000..e1479328
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ int
+
+ 3
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Preview.cs
new file mode 100644
index 00000000..b457f236
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(int value = 3);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Preview.xml
new file mode 100644
index 00000000..e1479328
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.int.3.Windows.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ int
+
+ 3
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Compatible.cs
new file mode 100644
index 00000000..6733966f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("long long")] long value = 4);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Compatible.xml
new file mode 100644
index 00000000..a8289cca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ long
+
+ 4
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Default.cs
new file mode 100644
index 00000000..6733966f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("long long")] long value = 4);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Default.xml
new file mode 100644
index 00000000..a8289cca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ long
+
+ 4
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Latest.cs
new file mode 100644
index 00000000..6733966f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("long long")] long value = 4);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Latest.xml
new file mode 100644
index 00000000..a8289cca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ long
+
+ 4
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Preview.cs
new file mode 100644
index 00000000..6733966f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("long long")] long value = 4);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Preview.xml
new file mode 100644
index 00000000..a8289cca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Unix.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ long
+
+ 4
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Compatible.cs
new file mode 100644
index 00000000..6733966f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("long long")] long value = 4);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Compatible.xml
new file mode 100644
index 00000000..a8289cca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ long
+
+ 4
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Default.cs
new file mode 100644
index 00000000..6733966f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("long long")] long value = 4);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Default.xml
new file mode 100644
index 00000000..a8289cca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ long
+
+ 4
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Latest.cs
new file mode 100644
index 00000000..6733966f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("long long")] long value = 4);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Latest.xml
new file mode 100644
index 00000000..a8289cca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ long
+
+ 4
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Preview.cs
new file mode 100644
index 00000000..6733966f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("long long")] long value = 4);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Preview.xml
new file mode 100644
index 00000000..a8289cca
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.long long.4.Windows.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ long
+
+ 4
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Compatible.cs
new file mode 100644
index 00000000..481abfcb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(short value = 2);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Compatible.xml
new file mode 100644
index 00000000..d70108cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ short
+
+ 2
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Default.cs
new file mode 100644
index 00000000..481abfcb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(short value = 2);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Default.xml
new file mode 100644
index 00000000..d70108cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ short
+
+ 2
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Latest.cs
new file mode 100644
index 00000000..481abfcb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(short value = 2);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Latest.xml
new file mode 100644
index 00000000..d70108cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ short
+
+ 2
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Preview.cs
new file mode 100644
index 00000000..481abfcb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(short value = 2);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Preview.xml
new file mode 100644
index 00000000..d70108cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Unix.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ short
+
+ 2
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Compatible.cs
new file mode 100644
index 00000000..481abfcb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(short value = 2);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Compatible.xml
new file mode 100644
index 00000000..d70108cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ short
+
+ 2
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Default.cs
new file mode 100644
index 00000000..481abfcb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(short value = 2);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Default.xml
new file mode 100644
index 00000000..d70108cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ short
+
+ 2
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Latest.cs
new file mode 100644
index 00000000..481abfcb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(short value = 2);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Latest.xml
new file mode 100644
index 00000000..d70108cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ short
+
+ 2
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Preview.cs
new file mode 100644
index 00000000..481abfcb
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(short value = 2);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Preview.xml
new file mode 100644
index 00000000..d70108cd
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.short.2.Windows.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ short
+
+ 2
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Compatible.cs
new file mode 100644
index 00000000..e92ee043
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("signed char")] sbyte value = 5);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Compatible.xml
new file mode 100644
index 00000000..e1e939f4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ sbyte
+
+ 5
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Default.cs
new file mode 100644
index 00000000..e92ee043
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("signed char")] sbyte value = 5);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Default.xml
new file mode 100644
index 00000000..e1e939f4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ sbyte
+
+ 5
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Latest.cs
new file mode 100644
index 00000000..e92ee043
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("signed char")] sbyte value = 5);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Latest.xml
new file mode 100644
index 00000000..e1e939f4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ sbyte
+
+ 5
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Preview.cs
new file mode 100644
index 00000000..e92ee043
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("signed char")] sbyte value = 5);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Preview.xml
new file mode 100644
index 00000000..e1e939f4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Unix.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ sbyte
+
+ 5
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Compatible.cs
new file mode 100644
index 00000000..e92ee043
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("signed char")] sbyte value = 5);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Compatible.xml
new file mode 100644
index 00000000..e1e939f4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ sbyte
+
+ 5
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Default.cs
new file mode 100644
index 00000000..e92ee043
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("signed char")] sbyte value = 5);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Default.xml
new file mode 100644
index 00000000..e1e939f4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ sbyte
+
+ 5
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Latest.cs
new file mode 100644
index 00000000..e92ee043
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("signed char")] sbyte value = 5);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Latest.xml
new file mode 100644
index 00000000..e1e939f4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ sbyte
+
+ 5
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Preview.cs
new file mode 100644
index 00000000..e92ee043
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("signed char")] sbyte value = 5);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Preview.xml
new file mode 100644
index 00000000..e1e939f4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.signed char.5.Windows.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ sbyte
+
+ 5
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Compatible.cs
new file mode 100644
index 00000000..f776ee3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned char")] byte value = 0);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Compatible.xml
new file mode 100644
index 00000000..ded85895
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ byte
+
+ 0
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Default.cs
new file mode 100644
index 00000000..f776ee3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned char")] byte value = 0);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Default.xml
new file mode 100644
index 00000000..ded85895
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ byte
+
+ 0
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Latest.cs
new file mode 100644
index 00000000..f776ee3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned char")] byte value = 0);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Latest.xml
new file mode 100644
index 00000000..ded85895
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ byte
+
+ 0
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Preview.cs
new file mode 100644
index 00000000..f776ee3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned char")] byte value = 0);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Preview.xml
new file mode 100644
index 00000000..ded85895
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Unix.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ byte
+
+ 0
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Compatible.cs
new file mode 100644
index 00000000..f776ee3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned char")] byte value = 0);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Compatible.xml
new file mode 100644
index 00000000..ded85895
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ byte
+
+ 0
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Default.cs
new file mode 100644
index 00000000..f776ee3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned char")] byte value = 0);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Default.xml
new file mode 100644
index 00000000..ded85895
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ byte
+
+ 0
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Latest.cs
new file mode 100644
index 00000000..f776ee3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned char")] byte value = 0);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Latest.xml
new file mode 100644
index 00000000..ded85895
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ byte
+
+ 0
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Preview.cs
new file mode 100644
index 00000000..f776ee3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned char")] byte value = 0);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Preview.xml
new file mode 100644
index 00000000..ded85895
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned char.0.Windows.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ byte
+
+ 0
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Compatible.cs
new file mode 100644
index 00000000..39fca763
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned int")] uint value = 8);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Compatible.xml
new file mode 100644
index 00000000..06e86e5b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ uint
+
+ 8
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Default.cs
new file mode 100644
index 00000000..39fca763
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned int")] uint value = 8);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Default.xml
new file mode 100644
index 00000000..06e86e5b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ uint
+
+ 8
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Latest.cs
new file mode 100644
index 00000000..39fca763
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned int")] uint value = 8);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Latest.xml
new file mode 100644
index 00000000..06e86e5b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ uint
+
+ 8
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Preview.cs
new file mode 100644
index 00000000..39fca763
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned int")] uint value = 8);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Preview.xml
new file mode 100644
index 00000000..06e86e5b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Unix.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ uint
+
+ 8
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Compatible.cs
new file mode 100644
index 00000000..39fca763
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned int")] uint value = 8);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Compatible.xml
new file mode 100644
index 00000000..06e86e5b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ uint
+
+ 8
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Default.cs
new file mode 100644
index 00000000..39fca763
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned int")] uint value = 8);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Default.xml
new file mode 100644
index 00000000..06e86e5b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ uint
+
+ 8
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Latest.cs
new file mode 100644
index 00000000..39fca763
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned int")] uint value = 8);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Latest.xml
new file mode 100644
index 00000000..06e86e5b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ uint
+
+ 8
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Preview.cs
new file mode 100644
index 00000000..39fca763
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned int")] uint value = 8);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Preview.xml
new file mode 100644
index 00000000..06e86e5b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned int.8.Windows.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ uint
+
+ 8
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Compatible.cs
new file mode 100644
index 00000000..dd6bff3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned long long")] ulong value = 9);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Compatible.xml
new file mode 100644
index 00000000..a9dfb811
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ulong
+
+ 9
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Default.cs
new file mode 100644
index 00000000..dd6bff3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned long long")] ulong value = 9);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Default.xml
new file mode 100644
index 00000000..a9dfb811
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ulong
+
+ 9
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Latest.cs
new file mode 100644
index 00000000..dd6bff3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned long long")] ulong value = 9);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Latest.xml
new file mode 100644
index 00000000..a9dfb811
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ulong
+
+ 9
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Preview.cs
new file mode 100644
index 00000000..dd6bff3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned long long")] ulong value = 9);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Preview.xml
new file mode 100644
index 00000000..a9dfb811
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Unix.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ulong
+
+ 9
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Compatible.cs
new file mode 100644
index 00000000..dd6bff3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned long long")] ulong value = 9);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Compatible.xml
new file mode 100644
index 00000000..a9dfb811
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ulong
+
+ 9
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Default.cs
new file mode 100644
index 00000000..dd6bff3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned long long")] ulong value = 9);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Default.xml
new file mode 100644
index 00000000..a9dfb811
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ulong
+
+ 9
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Latest.cs
new file mode 100644
index 00000000..dd6bff3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned long long")] ulong value = 9);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Latest.xml
new file mode 100644
index 00000000..a9dfb811
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ulong
+
+ 9
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Preview.cs
new file mode 100644
index 00000000..dd6bff3f
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned long long")] ulong value = 9);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Preview.xml
new file mode 100644
index 00000000..a9dfb811
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned long long.9.Windows.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ulong
+
+ 9
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Compatible.cs
new file mode 100644
index 00000000..53d3d607
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned short")] ushort value = (byte)('A'));
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Compatible.xml
new file mode 100644
index 00000000..2c3638e4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ushort
+
+ (byte)('A')
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Default.cs
new file mode 100644
index 00000000..53d3d607
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned short")] ushort value = (byte)('A'));
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Default.xml
new file mode 100644
index 00000000..2c3638e4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ushort
+
+ (byte)('A')
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Latest.cs
new file mode 100644
index 00000000..53d3d607
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned short")] ushort value = (byte)('A'));
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Latest.xml
new file mode 100644
index 00000000..2c3638e4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ushort
+
+ (byte)('A')
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Preview.cs
new file mode 100644
index 00000000..53d3d607
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned short")] ushort value = (byte)('A'));
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Preview.xml
new file mode 100644
index 00000000..2c3638e4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Unix.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ushort
+
+ (byte)('A')
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Compatible.cs
new file mode 100644
index 00000000..53d3d607
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned short")] ushort value = (byte)('A'));
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Compatible.xml
new file mode 100644
index 00000000..2c3638e4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ushort
+
+ (byte)('A')
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Default.cs
new file mode 100644
index 00000000..53d3d607
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned short")] ushort value = (byte)('A'));
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Default.xml
new file mode 100644
index 00000000..2c3638e4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ushort
+
+ (byte)('A')
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Latest.cs
new file mode 100644
index 00000000..53d3d607
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned short")] ushort value = (byte)('A'));
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Latest.xml
new file mode 100644
index 00000000..2c3638e4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ushort
+
+ (byte)('A')
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Preview.cs
new file mode 100644
index 00000000..53d3d607
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned short")] ushort value = (byte)('A'));
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Preview.xml
new file mode 100644
index 00000000..2c3638e4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.'A'.Windows.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ushort
+
+ (byte)('A')
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Compatible.cs
new file mode 100644
index 00000000..d00e0b33
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned short")] ushort value = 7);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Compatible.xml
new file mode 100644
index 00000000..5b2ed8b4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ushort
+
+ 7
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Default.cs
new file mode 100644
index 00000000..d00e0b33
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned short")] ushort value = 7);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Default.xml
new file mode 100644
index 00000000..5b2ed8b4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ushort
+
+ 7
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Latest.cs
new file mode 100644
index 00000000..d00e0b33
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned short")] ushort value = 7);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Latest.xml
new file mode 100644
index 00000000..5b2ed8b4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ushort
+
+ 7
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Preview.cs
new file mode 100644
index 00000000..d00e0b33
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned short")] ushort value = 7);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Preview.xml
new file mode 100644
index 00000000..5b2ed8b4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Unix.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ushort
+
+ 7
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Compatible.cs
new file mode 100644
index 00000000..d00e0b33
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned short")] ushort value = 7);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Compatible.xml
new file mode 100644
index 00000000..5b2ed8b4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ushort
+
+ 7
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Default.cs
new file mode 100644
index 00000000..d00e0b33
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned short")] ushort value = 7);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Default.xml
new file mode 100644
index 00000000..5b2ed8b4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ushort
+
+ 7
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Latest.cs
new file mode 100644
index 00000000..d00e0b33
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned short")] ushort value = 7);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Latest.xml
new file mode 100644
index 00000000..5b2ed8b4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ushort
+
+ 7
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Preview.cs
new file mode 100644
index 00000000..d00e0b33
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("unsigned short")] ushort value = 7);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Preview.xml
new file mode 100644
index 00000000..5b2ed8b4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterTest.unsigned short.7.Windows.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ ushort
+
+ 7
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Compatible.cs
new file mode 100644
index 00000000..e2ad5416
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(void* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Compatible.xml
new file mode 100644
index 00000000..29a1fe64
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ void*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Default.cs
new file mode 100644
index 00000000..e2ad5416
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(void* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Default.xml
new file mode 100644
index 00000000..29a1fe64
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ void*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Latest.cs
new file mode 100644
index 00000000..e2ad5416
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(void* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Latest.xml
new file mode 100644
index 00000000..29a1fe64
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ void*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Preview.cs
new file mode 100644
index 00000000..e2ad5416
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(void* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Preview.xml
new file mode 100644
index 00000000..29a1fe64
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Unix.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ void*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Compatible.cs
new file mode 100644
index 00000000..e2ad5416
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(void* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Compatible.xml
new file mode 100644
index 00000000..29a1fe64
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ void*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Default.cs
new file mode 100644
index 00000000..e2ad5416
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(void* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Default.xml
new file mode 100644
index 00000000..29a1fe64
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ void*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Latest.cs
new file mode 100644
index 00000000..e2ad5416
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(void* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Latest.xml
new file mode 100644
index 00000000..29a1fe64
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ void*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Preview.cs
new file mode 100644
index 00000000..e2ad5416
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(void* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Preview.xml
new file mode 100644
index 00000000..29a1fe64
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.0.Windows.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ void*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Compatible.cs
new file mode 100644
index 00000000..e2ad5416
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(void* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Compatible.xml
new file mode 100644
index 00000000..29a1fe64
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ void*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Default.cs
new file mode 100644
index 00000000..e2ad5416
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(void* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Default.xml
new file mode 100644
index 00000000..29a1fe64
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ void*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Latest.cs
new file mode 100644
index 00000000..e2ad5416
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(void* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Latest.xml
new file mode 100644
index 00000000..29a1fe64
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ void*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Preview.cs
new file mode 100644
index 00000000..e2ad5416
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(void* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Preview.xml
new file mode 100644
index 00000000..29a1fe64
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Unix.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ void*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Compatible.cs
new file mode 100644
index 00000000..e2ad5416
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(void* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Compatible.xml
new file mode 100644
index 00000000..29a1fe64
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Compatible.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ void*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Default.cs
new file mode 100644
index 00000000..e2ad5416
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(void* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Default.xml
new file mode 100644
index 00000000..29a1fe64
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Default.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ void*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Latest.cs
new file mode 100644
index 00000000..e2ad5416
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(void* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Latest.xml
new file mode 100644
index 00000000..29a1fe64
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Latest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ void*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Preview.cs
new file mode 100644
index 00000000..e2ad5416
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static unsafe partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(void* value = null);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Preview.xml
new file mode 100644
index 00000000..29a1fe64
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.OptionalParameterUnsafeTest.void __ast.nullptr.Windows.Preview.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ void
+
+ void*
+
+ null
+
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Compatible.cs
new file mode 100644
index 00000000..411ac5af
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Compatible.cs
@@ -0,0 +1,11 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [SourceLocation("ClangUnsavedFile.h", 1, 17)]
+ public static extern void MyFunction([SourceLocation("ClangUnsavedFile.h", 1, 34)] float value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Compatible.xml
new file mode 100644
index 00000000..a634dd3c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Compatible.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ float
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Default.cs
new file mode 100644
index 00000000..411ac5af
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Default.cs
@@ -0,0 +1,11 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [SourceLocation("ClangUnsavedFile.h", 1, 17)]
+ public static extern void MyFunction([SourceLocation("ClangUnsavedFile.h", 1, 34)] float value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Default.xml
new file mode 100644
index 00000000..a634dd3c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Default.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ float
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Latest.cs
new file mode 100644
index 00000000..411ac5af
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Latest.cs
@@ -0,0 +1,11 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [SourceLocation("ClangUnsavedFile.h", 1, 17)]
+ public static extern void MyFunction([SourceLocation("ClangUnsavedFile.h", 1, 34)] float value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Latest.xml
new file mode 100644
index 00000000..a634dd3c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Latest.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ float
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Preview.cs
new file mode 100644
index 00000000..411ac5af
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Preview.cs
@@ -0,0 +1,11 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [SourceLocation("ClangUnsavedFile.h", 1, 17)]
+ public static extern void MyFunction([SourceLocation("ClangUnsavedFile.h", 1, 34)] float value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Preview.xml
new file mode 100644
index 00000000..a634dd3c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Unix.Preview.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ float
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Compatible.cs
new file mode 100644
index 00000000..411ac5af
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Compatible.cs
@@ -0,0 +1,11 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [SourceLocation("ClangUnsavedFile.h", 1, 17)]
+ public static extern void MyFunction([SourceLocation("ClangUnsavedFile.h", 1, 34)] float value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Compatible.xml
new file mode 100644
index 00000000..a634dd3c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Compatible.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ float
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Default.cs
new file mode 100644
index 00000000..411ac5af
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Default.cs
@@ -0,0 +1,11 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [SourceLocation("ClangUnsavedFile.h", 1, 17)]
+ public static extern void MyFunction([SourceLocation("ClangUnsavedFile.h", 1, 34)] float value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Default.xml
new file mode 100644
index 00000000..a634dd3c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Default.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ float
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Latest.cs
new file mode 100644
index 00000000..411ac5af
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Latest.cs
@@ -0,0 +1,11 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [SourceLocation("ClangUnsavedFile.h", 1, 17)]
+ public static extern void MyFunction([SourceLocation("ClangUnsavedFile.h", 1, 34)] float value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Latest.xml
new file mode 100644
index 00000000..a634dd3c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Latest.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ float
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Preview.cs
new file mode 100644
index 00000000..411ac5af
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Preview.cs
@@ -0,0 +1,11 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ [SourceLocation("ClangUnsavedFile.h", 1, 17)]
+ public static extern void MyFunction([SourceLocation("ClangUnsavedFile.h", 1, 34)] float value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Preview.xml
new file mode 100644
index 00000000..a634dd3c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.SourceLocationTest.Windows.Preview.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ float
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Compatible.cs
new file mode 100644
index 00000000..2a6c1392
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ [NativeTypeName("MyTemplate")]
+ public MyTemplate a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Compatible.xml
new file mode 100644
index 00000000..167460dc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Compatible.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ MyTemplate<IntPtr>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Default.cs
new file mode 100644
index 00000000..2a6c1392
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ [NativeTypeName("MyTemplate")]
+ public MyTemplate a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Default.xml
new file mode 100644
index 00000000..167460dc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ MyTemplate<IntPtr>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Latest.cs
new file mode 100644
index 00000000..2a6c1392
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ [NativeTypeName("MyTemplate")]
+ public MyTemplate a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Latest.xml
new file mode 100644
index 00000000..167460dc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Latest.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ MyTemplate<IntPtr>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Preview.cs
new file mode 100644
index 00000000..2a6c1392
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ [NativeTypeName("MyTemplate")]
+ public MyTemplate a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Preview.xml
new file mode 100644
index 00000000..167460dc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Unix.Preview.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ MyTemplate<IntPtr>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Compatible.cs
new file mode 100644
index 00000000..2a6c1392
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ [NativeTypeName("MyTemplate")]
+ public MyTemplate a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Compatible.xml
new file mode 100644
index 00000000..167460dc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Compatible.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ MyTemplate<IntPtr>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Default.cs
new file mode 100644
index 00000000..2a6c1392
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ [NativeTypeName("MyTemplate")]
+ public MyTemplate a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Default.xml
new file mode 100644
index 00000000..167460dc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ MyTemplate<IntPtr>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Latest.cs
new file mode 100644
index 00000000..2a6c1392
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ [NativeTypeName("MyTemplate")]
+ public MyTemplate a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Latest.xml
new file mode 100644
index 00000000..167460dc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Latest.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ MyTemplate<IntPtr>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Preview.cs
new file mode 100644
index 00000000..2a6c1392
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System;
+
+namespace ClangSharp.Test
+{
+ public partial struct MyStruct
+ {
+ [NativeTypeName("MyTemplate")]
+ public MyTemplate a;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Preview.xml
new file mode 100644
index 00000000..167460dc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateMemberTest.Windows.Preview.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ MyTemplate<IntPtr>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Compatible.cs
new file mode 100644
index 00000000..e4d44b39
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Compatible.xml
new file mode 100644
index 00000000..d13558df
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Compatible.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<byte>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Default.cs
new file mode 100644
index 00000000..e4d44b39
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Default.xml
new file mode 100644
index 00000000..d13558df
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Default.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<byte>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Latest.cs
new file mode 100644
index 00000000..e4d44b39
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Latest.xml
new file mode 100644
index 00000000..d13558df
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Latest.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<byte>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Preview.cs
new file mode 100644
index 00000000..e4d44b39
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Preview.xml
new file mode 100644
index 00000000..d13558df
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Unix.Preview.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<byte>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Compatible.cs
new file mode 100644
index 00000000..e4d44b39
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Compatible.xml
new file mode 100644
index 00000000..d13558df
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Compatible.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<byte>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Default.cs
new file mode 100644
index 00000000..e4d44b39
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Default.xml
new file mode 100644
index 00000000..d13558df
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Default.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<byte>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Latest.cs
new file mode 100644
index 00000000..e4d44b39
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Latest.xml
new file mode 100644
index 00000000..d13558df
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Latest.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<byte>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Preview.cs
new file mode 100644
index 00000000..e4d44b39
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Preview.xml
new file mode 100644
index 00000000..d13558df
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.bool.Windows.Preview.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<byte>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Compatible.cs
new file mode 100644
index 00000000..525bd015
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Compatible.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Compatible.xml
new file mode 100644
index 00000000..01eb189c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Compatible.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<IntPtr>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Default.cs
new file mode 100644
index 00000000..525bd015
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Default.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Default.xml
new file mode 100644
index 00000000..01eb189c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Default.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<IntPtr>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Latest.cs
new file mode 100644
index 00000000..525bd015
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Latest.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Latest.xml
new file mode 100644
index 00000000..01eb189c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Latest.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<IntPtr>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Preview.cs
new file mode 100644
index 00000000..525bd015
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Preview.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Preview.xml
new file mode 100644
index 00000000..01eb189c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Unix.Preview.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<IntPtr>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Compatible.cs
new file mode 100644
index 00000000..525bd015
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Compatible.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Compatible.xml
new file mode 100644
index 00000000..01eb189c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Compatible.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<IntPtr>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Default.cs
new file mode 100644
index 00000000..525bd015
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Default.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Default.xml
new file mode 100644
index 00000000..01eb189c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Default.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<IntPtr>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Latest.cs
new file mode 100644
index 00000000..525bd015
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Latest.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Latest.xml
new file mode 100644
index 00000000..01eb189c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Latest.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<IntPtr>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Preview.cs
new file mode 100644
index 00000000..525bd015
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Preview.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Preview.xml
new file mode 100644
index 00000000..01eb189c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.float __ast.Windows.Preview.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<IntPtr>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Compatible.cs
new file mode 100644
index 00000000..15cde60a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Compatible.xml
new file mode 100644
index 00000000..8624f9b4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Compatible.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Default.cs
new file mode 100644
index 00000000..15cde60a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Default.xml
new file mode 100644
index 00000000..8624f9b4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Default.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Latest.cs
new file mode 100644
index 00000000..15cde60a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Latest.xml
new file mode 100644
index 00000000..8624f9b4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Latest.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Preview.cs
new file mode 100644
index 00000000..15cde60a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Preview.xml
new file mode 100644
index 00000000..8624f9b4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Unix.Preview.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Compatible.cs
new file mode 100644
index 00000000..15cde60a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Compatible.xml
new file mode 100644
index 00000000..8624f9b4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Compatible.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Default.cs
new file mode 100644
index 00000000..15cde60a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Default.xml
new file mode 100644
index 00000000..8624f9b4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Default.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Latest.cs
new file mode 100644
index 00000000..15cde60a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Latest.xml
new file mode 100644
index 00000000..8624f9b4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Latest.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Preview.cs
new file mode 100644
index 00000000..15cde60a
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction(MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Preview.xml
new file mode 100644
index 00000000..8624f9b4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.int.Windows.Preview.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<int>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Compatible.cs
new file mode 100644
index 00000000..a312e7e2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Compatible.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Compatible.xml
new file mode 100644
index 00000000..01eb189c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Compatible.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<IntPtr>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Default.cs
new file mode 100644
index 00000000..a312e7e2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Default.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Default.xml
new file mode 100644
index 00000000..01eb189c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Default.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<IntPtr>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Latest.cs
new file mode 100644
index 00000000..a312e7e2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Latest.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Latest.xml
new file mode 100644
index 00000000..01eb189c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Latest.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<IntPtr>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Preview.cs
new file mode 100644
index 00000000..a312e7e2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Preview.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Preview.xml
new file mode 100644
index 00000000..01eb189c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Unix.Preview.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<IntPtr>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Compatible.cs
new file mode 100644
index 00000000..a312e7e2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Compatible.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Compatible.xml
new file mode 100644
index 00000000..01eb189c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Compatible.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<IntPtr>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Default.cs
new file mode 100644
index 00000000..a312e7e2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Default.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Default.xml
new file mode 100644
index 00000000..01eb189c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Default.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<IntPtr>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Latest.cs
new file mode 100644
index 00000000..a312e7e2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Latest.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Latest.xml
new file mode 100644
index 00000000..01eb189c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Latest.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<IntPtr>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Preview.cs
new file mode 100644
index 00000000..a312e7e2
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Preview.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction([NativeTypeName("MyTemplate")] MyTemplate myStruct);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Preview.xml
new file mode 100644
index 00000000..01eb189c
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.TemplateParameterTest.void (__ast)(int).Windows.Preview.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+ void
+
+ MyTemplate<IntPtr>
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Compatible.cs
new file mode 100644
index 00000000..92091a8d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Compatible.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Compatible.xml
new file mode 100644
index 00000000..4c9c5dd5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Compatible.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Default.cs
new file mode 100644
index 00000000..92091a8d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Default.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Default.xml
new file mode 100644
index 00000000..4c9c5dd5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Default.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Latest.cs
new file mode 100644
index 00000000..92091a8d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Latest.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Latest.xml
new file mode 100644
index 00000000..4c9c5dd5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Latest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Preview.cs
new file mode 100644
index 00000000..92091a8d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Preview.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Preview.xml
new file mode 100644
index 00000000..4c9c5dd5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Unix.Preview.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Compatible.cs
new file mode 100644
index 00000000..92091a8d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Compatible.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Compatible.xml
new file mode 100644
index 00000000..4c9c5dd5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Compatible.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Default.cs
new file mode 100644
index 00000000..92091a8d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Default.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Default.xml
new file mode 100644
index 00000000..4c9c5dd5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Default.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Latest.cs
new file mode 100644
index 00000000..92091a8d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Latest.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Latest.xml
new file mode 100644
index 00000000..4c9c5dd5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Latest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Preview.cs
new file mode 100644
index 00000000..92091a8d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Preview.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.StdCall, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Preview.xml
new file mode 100644
index 00000000..4c9c5dd5
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarOverrideTest.Windows.Preview.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Compatible.cs
new file mode 100644
index 00000000..85f6e126
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Compatible.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Compatible.xml
new file mode 100644
index 00000000..fbb515ff
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Compatible.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Default.cs
new file mode 100644
index 00000000..85f6e126
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Default.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Default.xml
new file mode 100644
index 00000000..fbb515ff
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Default.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Latest.cs
new file mode 100644
index 00000000..85f6e126
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Latest.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Latest.xml
new file mode 100644
index 00000000..fbb515ff
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Latest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Preview.cs
new file mode 100644
index 00000000..85f6e126
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Preview.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Preview.xml
new file mode 100644
index 00000000..fbb515ff
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Unix.Preview.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Compatible.cs
new file mode 100644
index 00000000..85f6e126
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Compatible.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Compatible.xml
new file mode 100644
index 00000000..fbb515ff
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Compatible.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Default.cs
new file mode 100644
index 00000000..85f6e126
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Default.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Default.xml
new file mode 100644
index 00000000..fbb515ff
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Default.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Latest.cs
new file mode 100644
index 00000000..85f6e126
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Latest.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Latest.xml
new file mode 100644
index 00000000..fbb515ff
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Latest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Preview.cs
new file mode 100644
index 00000000..85f6e126
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Preview.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Preview.xml
new file mode 100644
index 00000000..fbb515ff
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvStarTest.Windows.Preview.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Compatible.cs
new file mode 100644
index 00000000..77789cfe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Compatible.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Compatible.xml
new file mode 100644
index 00000000..66d23f21
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Compatible.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Default.cs
new file mode 100644
index 00000000..77789cfe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Default.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Default.xml
new file mode 100644
index 00000000..66d23f21
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Default.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Latest.cs
new file mode 100644
index 00000000..77789cfe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Latest.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Latest.xml
new file mode 100644
index 00000000..66d23f21
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Latest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Preview.cs
new file mode 100644
index 00000000..77789cfe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Preview.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Preview.xml
new file mode 100644
index 00000000..66d23f21
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Unix.Preview.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Compatible.cs
new file mode 100644
index 00000000..77789cfe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Compatible.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Compatible.xml
new file mode 100644
index 00000000..66d23f21
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Compatible.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Default.cs
new file mode 100644
index 00000000..77789cfe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Default.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Default.xml
new file mode 100644
index 00000000..66d23f21
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Default.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Latest.cs
new file mode 100644
index 00000000..77789cfe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Latest.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Latest.xml
new file mode 100644
index 00000000..66d23f21
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Latest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Preview.cs
new file mode 100644
index 00000000..77789cfe
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Preview.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", ExactSpelling = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Preview.xml
new file mode 100644
index 00000000..66d23f21
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithCallConvTest.Windows.Preview.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Compatible.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Compatible.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Compatible.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Default.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Default.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Latest.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Latest.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Latest.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Preview.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Preview.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Unix.Preview.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Compatible.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Compatible.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Compatible.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Default.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Default.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Latest.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Latest.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Latest.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Preview.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Preview.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathStarTest.Windows.Preview.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Compatible.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Compatible.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Compatible.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Default.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Default.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Latest.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Latest.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Latest.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Preview.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Preview.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Unix.Preview.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Compatible.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Compatible.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Compatible.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Compatible.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Default.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Default.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Default.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Latest.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Latest.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Latest.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Latest.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Preview.cs
new file mode 100644
index 00000000..e1bfab2e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Preview.cs
@@ -0,0 +1,10 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction();
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Preview.xml
new file mode 100644
index 00000000..1dfcf83d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithLibraryPathTest.Windows.Preview.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ void
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Compatible.cs
new file mode 100644
index 00000000..72c1144d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Compatible.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Compatible.xml
new file mode 100644
index 00000000..ee7e2b73
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Compatible.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Default.cs
new file mode 100644
index 00000000..72c1144d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Default.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Default.xml
new file mode 100644
index 00000000..ee7e2b73
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Default.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Latest.cs
new file mode 100644
index 00000000..72c1144d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Latest.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Latest.xml
new file mode 100644
index 00000000..ee7e2b73
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Latest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Preview.cs
new file mode 100644
index 00000000..72c1144d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Preview.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Preview.xml
new file mode 100644
index 00000000..ee7e2b73
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Unix.Preview.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Compatible.cs
new file mode 100644
index 00000000..72c1144d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Compatible.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Compatible.xml
new file mode 100644
index 00000000..ee7e2b73
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Compatible.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Default.cs
new file mode 100644
index 00000000..72c1144d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Default.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Default.xml
new file mode 100644
index 00000000..ee7e2b73
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Default.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Latest.cs
new file mode 100644
index 00000000..72c1144d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Latest.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Latest.xml
new file mode 100644
index 00000000..ee7e2b73
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Latest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Preview.cs
new file mode 100644
index 00000000..72c1144d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Preview.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Preview.xml
new file mode 100644
index 00000000..ee7e2b73
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorStarTest.Windows.Preview.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Compatible.cs
new file mode 100644
index 00000000..56de16d4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Compatible.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Compatible.xml
new file mode 100644
index 00000000..f25321b1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Compatible.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Default.cs
new file mode 100644
index 00000000..56de16d4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Default.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Default.xml
new file mode 100644
index 00000000..f25321b1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Default.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Latest.cs
new file mode 100644
index 00000000..56de16d4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Latest.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Latest.xml
new file mode 100644
index 00000000..f25321b1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Latest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Preview.cs
new file mode 100644
index 00000000..56de16d4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Preview.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Preview.xml
new file mode 100644
index 00000000..f25321b1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Unix.Preview.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Compatible.cs
new file mode 100644
index 00000000..56de16d4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Compatible.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Compatible.xml
new file mode 100644
index 00000000..f25321b1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Compatible.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Default.cs
new file mode 100644
index 00000000..56de16d4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Default.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Default.xml
new file mode 100644
index 00000000..f25321b1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Default.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Latest.cs
new file mode 100644
index 00000000..56de16d4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Latest.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Latest.xml
new file mode 100644
index 00000000..f25321b1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Latest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Preview.cs
new file mode 100644
index 00000000..56de16d4
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Preview.cs
@@ -0,0 +1,13 @@
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ public static partial class Methods
+ {
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = true)]
+ public static extern void MyFunction1(int value);
+
+ [DllImport("ClangSharpPInvokeGenerator", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
+ public static extern void MyFunction2(int value);
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Preview.xml
new file mode 100644
index 00000000..f25321b1
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionDeclarationDllImportTest.WithSetLastErrorTest.Windows.Preview.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ void
+
+ int
+
+
+
+ void
+
+ int
+
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Compatible.cs
new file mode 100644
index 00000000..283d4fce
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Compatible.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ public delegate void Callback();
+
+ public partial struct MyStruct
+ {
+ [NativeTypeName("Callback")]
+ public IntPtr _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Compatible.xml
new file mode 100644
index 00000000..c7ca8ecc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Compatible.xml
@@ -0,0 +1,13 @@
+
+
+
+
+ void
+
+
+
+ IntPtr
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Default.cs
new file mode 100644
index 00000000..ab439a0b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Default.cs
@@ -0,0 +1,8 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [NativeTypeName("Callback")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Default.xml
new file mode 100644
index 00000000..fc11a560
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Latest.cs
new file mode 100644
index 00000000..ab439a0b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Latest.cs
@@ -0,0 +1,8 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [NativeTypeName("Callback")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Latest.xml
new file mode 100644
index 00000000..fc11a560
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Latest.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Preview.cs
new file mode 100644
index 00000000..ab439a0b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Preview.cs
@@ -0,0 +1,8 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [NativeTypeName("Callback")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Preview.xml
new file mode 100644
index 00000000..fc11a560
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Unix.Preview.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Compatible.cs
new file mode 100644
index 00000000..283d4fce
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Compatible.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ public delegate void Callback();
+
+ public partial struct MyStruct
+ {
+ [NativeTypeName("Callback")]
+ public IntPtr _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Compatible.xml
new file mode 100644
index 00000000..c7ca8ecc
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Compatible.xml
@@ -0,0 +1,13 @@
+
+
+
+
+ void
+
+
+
+ IntPtr
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Default.cs
new file mode 100644
index 00000000..ab439a0b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Default.cs
@@ -0,0 +1,8 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [NativeTypeName("Callback")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Default.xml
new file mode 100644
index 00000000..fc11a560
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Latest.cs
new file mode 100644
index 00000000..ab439a0b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Latest.cs
@@ -0,0 +1,8 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [NativeTypeName("Callback")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Latest.xml
new file mode 100644
index 00000000..fc11a560
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Latest.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Preview.cs
new file mode 100644
index 00000000..ab439a0b
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Preview.cs
@@ -0,0 +1,8 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [NativeTypeName("Callback")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Preview.xml
new file mode 100644
index 00000000..fc11a560
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.BasicTest.Windows.Preview.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Compatible.cs
new file mode 100644
index 00000000..63fa8098
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Compatible.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ public delegate void Callback();
+
+ public partial struct MyStruct
+ {
+ [NativeTypeName("Callback")]
+ public IntPtr _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Compatible.xml
new file mode 100644
index 00000000..e73a7226
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Compatible.xml
@@ -0,0 +1,13 @@
+
+
+
+
+ void
+
+
+
+ IntPtr
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Default.cs
new file mode 100644
index 00000000..e80d15e3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Default.cs
@@ -0,0 +1,8 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [NativeTypeName("Callback")]
+ public delegate* unmanaged[Stdcall] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Default.xml
new file mode 100644
index 00000000..8d530d3e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ delegate* unmanaged[Stdcall]<void>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Latest.cs
new file mode 100644
index 00000000..e80d15e3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Latest.cs
@@ -0,0 +1,8 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [NativeTypeName("Callback")]
+ public delegate* unmanaged[Stdcall] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Latest.xml
new file mode 100644
index 00000000..8d530d3e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Latest.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ delegate* unmanaged[Stdcall]<void>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Preview.cs
new file mode 100644
index 00000000..e80d15e3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Preview.cs
@@ -0,0 +1,8 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [NativeTypeName("Callback")]
+ public delegate* unmanaged[Stdcall] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Preview.xml
new file mode 100644
index 00000000..8d530d3e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Unix.Preview.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ delegate* unmanaged[Stdcall]<void>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Compatible.cs
new file mode 100644
index 00000000..63fa8098
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Compatible.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ public delegate void Callback();
+
+ public partial struct MyStruct
+ {
+ [NativeTypeName("Callback")]
+ public IntPtr _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Compatible.xml
new file mode 100644
index 00000000..e73a7226
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Compatible.xml
@@ -0,0 +1,13 @@
+
+
+
+
+ void
+
+
+
+ IntPtr
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Default.cs
new file mode 100644
index 00000000..e80d15e3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Default.cs
@@ -0,0 +1,8 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [NativeTypeName("Callback")]
+ public delegate* unmanaged[Stdcall] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Default.xml
new file mode 100644
index 00000000..8d530d3e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ delegate* unmanaged[Stdcall]<void>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Latest.cs
new file mode 100644
index 00000000..e80d15e3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Latest.cs
@@ -0,0 +1,8 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [NativeTypeName("Callback")]
+ public delegate* unmanaged[Stdcall] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Latest.xml
new file mode 100644
index 00000000..8d530d3e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Latest.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ delegate* unmanaged[Stdcall]<void>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Preview.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Preview.cs
new file mode 100644
index 00000000..e80d15e3
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Preview.cs
@@ -0,0 +1,8 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [NativeTypeName("Callback")]
+ public delegate* unmanaged[Stdcall] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Preview.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Preview.xml
new file mode 100644
index 00000000..8d530d3e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.CallconvTest.Windows.Preview.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ delegate* unmanaged[Stdcall]<void>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.PointerlessTypedefTest.Unix.Compatible.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.PointerlessTypedefTest.Unix.Compatible.cs
new file mode 100644
index 00000000..0cd46b9d
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.PointerlessTypedefTest.Unix.Compatible.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace ClangSharp.Test
+{
+ [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
+ public delegate void Callback();
+
+ public partial struct MyStruct
+ {
+ [NativeTypeName("Callback *")]
+ public IntPtr _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.PointerlessTypedefTest.Unix.Compatible.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.PointerlessTypedefTest.Unix.Compatible.xml
new file mode 100644
index 00000000..ff657d34
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.PointerlessTypedefTest.Unix.Compatible.xml
@@ -0,0 +1,13 @@
+
+
+
+
+ void
+
+
+
+ IntPtr
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.PointerlessTypedefTest.Unix.Default.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.PointerlessTypedefTest.Unix.Default.cs
new file mode 100644
index 00000000..9182283e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.PointerlessTypedefTest.Unix.Default.cs
@@ -0,0 +1,8 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [NativeTypeName("Callback *")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.PointerlessTypedefTest.Unix.Default.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.PointerlessTypedefTest.Unix.Default.xml
new file mode 100644
index 00000000..3aaad9f6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.PointerlessTypedefTest.Unix.Default.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+ delegate* unmanaged[Cdecl]<void>
+
+
+
+
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.PointerlessTypedefTest.Unix.Latest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.PointerlessTypedefTest.Unix.Latest.cs
new file mode 100644
index 00000000..9182283e
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.PointerlessTypedefTest.Unix.Latest.cs
@@ -0,0 +1,8 @@
+namespace ClangSharp.Test
+{
+ public unsafe partial struct MyStruct
+ {
+ [NativeTypeName("Callback *")]
+ public delegate* unmanaged[Cdecl] _callback;
+ }
+}
diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.PointerlessTypedefTest.Unix.Latest.xml b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.PointerlessTypedefTest.Unix.Latest.xml
new file mode 100644
index 00000000..3aaad9f6
--- /dev/null
+++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/Baselines/FunctionPointerDeclarationTest.PointerlessTypedefTest.Unix.Latest.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+