Skip to content

DivideByZeroException in GetTypeSize #224

@andrew-boyarshin

Description

@andrew-boyarshin
public override Task NestedDeclarationTest()
{
    var inputContents = @"struct CustomNativeNew {};

struct CustomNativeNewNested
{
    CustomNativeNew Nested;
};
";

    var expectedOutputContents = @"namespace ClangSharp.Test
{
    public partial struct CustomNativeNew
    {
    }

    public partial struct CustomNativeNewNested
    {
        public CustomNativeNew Nested;
    }
}
";

    return ValidateGeneratedCSharpLatestWindowsBindingsAsync(inputContents, expectedOutputContents);
}

Found after fixing #223 (actually, first uncovered when working on next-generation SharpGen based on ClangSharp).

Test origin.

image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions