// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using Xunit;
// Generated by Fuzzlyn v1.2 on 2021-08-16 12:56:37
// Run on .NET 6.0.0-dev on X64 Windows
// Seed: 10782465293682251646
// Reduced from 129.7 KiB to 0.8 KiB in 00:01:40
// Debug: Outputs 0
// Release: Outputs 1
struct S0
{
    public short F0;
    public short F1;
    public int F2;
    public short F3;
    public short F4;
    public S0(short f4) : this()
    {
        F4 = f4;
    }
}

struct S1
{
    public S0 F0;
    public int F3;
    public S1(S0 f0) : this()
    {
        F0 = f0;
    }
}

struct S3
{
    public S1 F0;
    public S3(S1 f0) : this()
    {
        F0 = f0;
    }
}

struct S4
{
    public ushort F3;
    public S3 F4;
    public S4(S3 f4) : this()
    {
        F4 = f4;
    }
}

public class Program
{
    static S0[] s_9 = new S0[] { new S0(0) };

    public static int Test()
    {
        S0 vr4 = default(S0);
        S4 vr5 = new S4(new S3(new S1(new S0(1))));
        s_9[0].F4 = vr5.F4.F0.F0.F4;
        System.Console.WriteLine(vr4.F1);
        return vr4.F1;
    }

    [Fact]
    public static int TestEntryPoint()
    {
        if (Test() == 0)
        {
            return 100;
        }
        return 101;
    }
}