diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67741bd4..4bb38443 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -151,7 +151,7 @@ jobs: publish-nightlies-github: runs-on: ubuntu-latest if: false - needs: [ windows-x64, linux-x64, macos-arm64, sign-nuget-preview, sign-nuget-release ] + needs: [ sign-nuget ] steps: - uses: actions/download-artifact@v4 with: diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/CXXMethodDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/CXXMethodDeclarationTest.cs index afc4704c..5a363544 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/CXXMethodDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleUnix/CXXMethodDeclarationTest.cs @@ -905,7 +905,7 @@ protected override Task VirtualTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -929,7 +929,7 @@ public unsafe partial struct MyStruct public delegate void _MyVoidMethod(MyStruct* pThis); [UnmanagedFunctionPointer(CallingConvention.ThisCall)] - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public delegate sbyte _MyInt8Method(MyStruct* pThis); [UnmanagedFunctionPointer(CallingConvention.ThisCall)] @@ -946,7 +946,7 @@ public void MyVoidMethod() }} }} - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public sbyte MyInt8Method() {{ fixed (MyStruct* pThis = &this) @@ -983,7 +983,7 @@ protected override Task VirtualWithVtblIndexAttributeTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -1007,7 +1007,7 @@ public unsafe partial struct MyStruct public delegate void _MyVoidMethod(MyStruct* pThis); [UnmanagedFunctionPointer(CallingConvention.ThisCall)] - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public delegate sbyte _MyInt8Method(MyStruct* pThis); [UnmanagedFunctionPointer(CallingConvention.ThisCall)] @@ -1026,7 +1026,7 @@ public void MyVoidMethod() }} [VtblIndex(1)] - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public sbyte MyInt8Method() {{ fixed (MyStruct* pThis = &this) diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/CXXMethodDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/CXXMethodDeclarationTest.cs index 14249777..88bd0b5e 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/CXXMethodDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpCompatibleWindows/CXXMethodDeclarationTest.cs @@ -900,7 +900,7 @@ protected override Task VirtualTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -924,7 +924,7 @@ public unsafe partial struct MyStruct public delegate void _MyVoidMethod(MyStruct* pThis); [UnmanagedFunctionPointer(CallingConvention.ThisCall)] - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public delegate sbyte _MyInt8Method(MyStruct* pThis); [UnmanagedFunctionPointer(CallingConvention.ThisCall)] @@ -941,7 +941,7 @@ public void MyVoidMethod() }} }} - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public sbyte MyInt8Method() {{ fixed (MyStruct* pThis = &this) @@ -978,7 +978,7 @@ protected override Task VirtualWithVtblIndexAttributeTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -1002,7 +1002,7 @@ public unsafe partial struct MyStruct public delegate void _MyVoidMethod(MyStruct* pThis); [UnmanagedFunctionPointer(CallingConvention.ThisCall)] - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public delegate sbyte _MyInt8Method(MyStruct* pThis); [UnmanagedFunctionPointer(CallingConvention.ThisCall)] @@ -1021,7 +1021,7 @@ public void MyVoidMethod() }} [VtblIndex(1)] - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public sbyte MyInt8Method() {{ fixed (MyStruct* pThis = &this) diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpDefaultUnix/CXXMethodDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpDefaultUnix/CXXMethodDeclarationTest.cs index 47e77d51..9049cd5d 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpDefaultUnix/CXXMethodDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpDefaultUnix/CXXMethodDeclarationTest.cs @@ -844,7 +844,7 @@ protected override Task VirtualTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -868,7 +868,7 @@ public void MyVoidMethod() ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this)); }} - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public sbyte MyInt8Method() {{ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); @@ -896,7 +896,7 @@ protected override Task VirtualWithVtblIndexAttributeTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -922,7 +922,7 @@ public void MyVoidMethod() }} [VtblIndex(1)] - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public sbyte MyInt8Method() {{ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpDefaultWindows/CXXMethodDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpDefaultWindows/CXXMethodDeclarationTest.cs index 01f769a5..a668f2c1 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpDefaultWindows/CXXMethodDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpDefaultWindows/CXXMethodDeclarationTest.cs @@ -849,7 +849,7 @@ protected override Task VirtualTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -873,7 +873,7 @@ public void MyVoidMethod() ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this)); }} - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public sbyte MyInt8Method() {{ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); @@ -901,7 +901,7 @@ protected override Task VirtualWithVtblIndexAttributeTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -927,7 +927,7 @@ public void MyVoidMethod() }} [VtblIndex(1)] - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public sbyte MyInt8Method() {{ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/CXXMethodDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/CXXMethodDeclarationTest.cs index 9ac0558a..6d422c23 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/CXXMethodDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestUnix/CXXMethodDeclarationTest.cs @@ -844,7 +844,7 @@ protected override Task VirtualTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -868,7 +868,7 @@ public void MyVoidMethod() ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this)); }} - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public sbyte MyInt8Method() {{ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); @@ -896,7 +896,7 @@ protected override Task VirtualWithVtblIndexAttributeTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -922,7 +922,7 @@ public void MyVoidMethod() }} [VtblIndex(1)] - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public sbyte MyInt8Method() {{ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/CXXMethodDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/CXXMethodDeclarationTest.cs index e37b13e8..731613c9 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/CXXMethodDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpLatestWindows/CXXMethodDeclarationTest.cs @@ -844,7 +844,7 @@ protected override Task VirtualTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -868,7 +868,7 @@ public void MyVoidMethod() ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this)); }} - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public sbyte MyInt8Method() {{ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); @@ -896,7 +896,7 @@ protected override Task VirtualWithVtblIndexAttributeTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -922,7 +922,7 @@ public void MyVoidMethod() }} [VtblIndex(1)] - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public sbyte MyInt8Method() {{ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpPreviewUnix/CXXMethodDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpPreviewUnix/CXXMethodDeclarationTest.cs index e9f3cb58..d0e056f3 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpPreviewUnix/CXXMethodDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpPreviewUnix/CXXMethodDeclarationTest.cs @@ -844,7 +844,7 @@ protected override Task VirtualTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -868,7 +868,7 @@ public void MyVoidMethod() ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this)); }} - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public sbyte MyInt8Method() {{ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); @@ -896,7 +896,7 @@ protected override Task VirtualWithVtblIndexAttributeTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -922,7 +922,7 @@ public void MyVoidMethod() }} [VtblIndex(1)] - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public sbyte MyInt8Method() {{ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpPreviewWindows/CXXMethodDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpPreviewWindows/CXXMethodDeclarationTest.cs index 28f1de68..a49a18d3 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpPreviewWindows/CXXMethodDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/CSharpPreviewWindows/CXXMethodDeclarationTest.cs @@ -844,7 +844,7 @@ protected override Task VirtualTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -868,7 +868,7 @@ public void MyVoidMethod() ((delegate* unmanaged[Thiscall])(lpVtbl[0]))((MyStruct*)Unsafe.AsPointer(ref this)); }} - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public sbyte MyInt8Method() {{ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); @@ -896,7 +896,7 @@ protected override Task VirtualWithVtblIndexAttributeTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -922,7 +922,7 @@ public void MyVoidMethod() }} [VtblIndex(1)] - [return: NativeTypeName(""char"")] + [return: NativeTypeName(""signed char"")] public sbyte MyInt8Method() {{ return ((delegate* unmanaged[Thiscall])(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleUnix/CXXMethodDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleUnix/CXXMethodDeclarationTest.cs index 0403f89d..7485d37c 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleUnix/CXXMethodDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleUnix/CXXMethodDeclarationTest.cs @@ -1099,7 +1099,7 @@ protected override Task VirtualTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -1124,7 +1124,7 @@ virtual char MyInt8Method() - sbyte + sbyte MyStruct* @@ -1151,7 +1151,7 @@ virtual char MyInt8Method() - sbyte + sbyte fixed (MyStruct* pThis = &this) {{ @@ -1191,7 +1191,7 @@ protected override Task VirtualWithVtblIndexAttributeTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -1216,7 +1216,7 @@ virtual char MyInt8Method() - sbyte + sbyte MyStruct* @@ -1243,7 +1243,7 @@ virtual char MyInt8Method() - sbyte + sbyte fixed (MyStruct* pThis = &this) {{ diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleWindows/CXXMethodDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleWindows/CXXMethodDeclarationTest.cs index 20c1ee5c..bcdda1f4 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleWindows/CXXMethodDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlCompatibleWindows/CXXMethodDeclarationTest.cs @@ -1100,7 +1100,7 @@ protected override Task VirtualTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -1125,7 +1125,7 @@ virtual char MyInt8Method() - sbyte + sbyte MyStruct* @@ -1152,7 +1152,7 @@ virtual char MyInt8Method() - sbyte + sbyte fixed (MyStruct* pThis = &this) {{ @@ -1192,7 +1192,7 @@ protected override Task VirtualWithVtblIndexAttributeTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -1217,7 +1217,7 @@ virtual char MyInt8Method() - sbyte + sbyte MyStruct* @@ -1244,7 +1244,7 @@ virtual char MyInt8Method() - sbyte + sbyte fixed (MyStruct* pThis = &this) {{ diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlDefaultUnix/CXXMethodDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlDefaultUnix/CXXMethodDeclarationTest.cs index a27fcb0a..5a4859f9 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlDefaultUnix/CXXMethodDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlDefaultUnix/CXXMethodDeclarationTest.cs @@ -992,7 +992,7 @@ protected override Task VirtualTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -1017,7 +1017,7 @@ virtual char MyInt8Method() - sbyte + sbyte return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); @@ -1048,7 +1048,7 @@ protected override Task VirtualWithVtblIndexAttributeTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -1073,7 +1073,7 @@ virtual char MyInt8Method() - sbyte + sbyte return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlDefaultWindows/CXXMethodDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlDefaultWindows/CXXMethodDeclarationTest.cs index 68d12ca2..85afa10c 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlDefaultWindows/CXXMethodDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlDefaultWindows/CXXMethodDeclarationTest.cs @@ -992,7 +992,7 @@ protected override Task VirtualTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -1017,7 +1017,7 @@ virtual char MyInt8Method() - sbyte + sbyte return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); @@ -1048,7 +1048,7 @@ protected override Task VirtualWithVtblIndexAttributeTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -1073,7 +1073,7 @@ virtual char MyInt8Method() - sbyte + sbyte return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestUnix/CXXMethodDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestUnix/CXXMethodDeclarationTest.cs index 6f9e9e76..b843483e 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestUnix/CXXMethodDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestUnix/CXXMethodDeclarationTest.cs @@ -992,7 +992,7 @@ protected override Task VirtualTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -1017,7 +1017,7 @@ virtual char MyInt8Method() - sbyte + sbyte return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); @@ -1048,7 +1048,7 @@ protected override Task VirtualWithVtblIndexAttributeTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -1073,7 +1073,7 @@ virtual char MyInt8Method() - sbyte + sbyte return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestWindows/CXXMethodDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestWindows/CXXMethodDeclarationTest.cs index 56aa6a01..d22ffa78 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestWindows/CXXMethodDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlLatestWindows/CXXMethodDeclarationTest.cs @@ -992,7 +992,7 @@ protected override Task VirtualTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -1017,7 +1017,7 @@ virtual char MyInt8Method() - sbyte + sbyte return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); @@ -1048,7 +1048,7 @@ protected override Task VirtualWithVtblIndexAttributeTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -1073,7 +1073,7 @@ virtual char MyInt8Method() - sbyte + sbyte return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlPreviewUnix/CXXMethodDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlPreviewUnix/CXXMethodDeclarationTest.cs index 6f753d62..fd20ea07 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlPreviewUnix/CXXMethodDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlPreviewUnix/CXXMethodDeclarationTest.cs @@ -990,7 +990,7 @@ protected override Task VirtualTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -1015,7 +1015,7 @@ virtual char MyInt8Method() - sbyte + sbyte return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); @@ -1046,7 +1046,7 @@ protected override Task VirtualWithVtblIndexAttributeTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -1071,7 +1071,7 @@ virtual char MyInt8Method() - sbyte + sbyte return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); diff --git a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlPreviewWindows/CXXMethodDeclarationTest.cs b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlPreviewWindows/CXXMethodDeclarationTest.cs index e942b31a..7fa773bb 100644 --- a/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlPreviewWindows/CXXMethodDeclarationTest.cs +++ b/tests/ClangSharp.PInvokeGenerator.UnitTests/XmlPreviewWindows/CXXMethodDeclarationTest.cs @@ -991,7 +991,7 @@ protected override Task VirtualTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -1016,7 +1016,7 @@ virtual char MyInt8Method() - sbyte + sbyte return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this)); @@ -1047,7 +1047,7 @@ protected override Task VirtualWithVtblIndexAttributeTestImpl() { virtual void MyVoidMethod() = 0; - virtual char MyInt8Method() + virtual signed char MyInt8Method() { return 0; } @@ -1072,7 +1072,7 @@ virtual char MyInt8Method() - sbyte + sbyte return ((delegate* unmanaged[Thiscall]<MyStruct*, sbyte>)(lpVtbl[1]))((MyStruct*)Unsafe.AsPointer(ref this));