summaryrefslogtreecommitdiff
path: root/tests/src/JIT/jit64/gc/misc/struct4.cs
blob: 0d4ccfa3f1d0c1605ce9800b7f695bd4f2dda88f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//

using System;

struct S
{
    public String str;
}

class Test
{
    public static void c(S s1, S s2, S s3)
    {
        Console.WriteLine(s1.str + s2.str + s3.str);
    }

    public static int Main()
    {
        S sM, sM2, sM3;

        sM.str = "test";
        sM2.str = "test2";
        sM3.str = "test3";
        c(sM, sM2, sM3);
        return 100;
    }
}