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

using Xunit;
struct Foo
{
#pragma warning disable 0414
    public int a;
    public int b;
    public int c;
#pragma warning restore 0414
}

public class Bar
{
    static Foo[] _myArray;

    static void Bork(ref Foo arg)
    {
        arg = _myArray[3];
    }

    [Fact]
    public static void TestEntryPoint()
    {
        _myArray = new Foo[10];

        Foo duh = new Foo();

        duh.a = 1;
        duh.b = 2;
        duh.c = 3;

        Bork(ref duh);
    }
}
