summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-Beta1/b91074/pack8.cs
blob: 3d0b3b47c5722865084f825dd71fead4b7c5febd (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//

using System;
using System.Runtime.InteropServices;

[StructLayoutAttribute(LayoutKind.Sequential, Pack = 8)]
sealed internal class tagDBPROPSET
{
    public IntPtr rgProperties;
    public Int32 cProperties;
    public Guid guidPropertySet;

    internal tagDBPROPSET()
    {
    }

    internal tagDBPROPSET(int propertyCount, Guid propertySet)
    {
        cProperties = propertyCount;
        guidPropertySet = propertySet;
    }
}

public class a
{
    static public int Main()
    {
        try
        {
            tagDBPROPSET p = new tagDBPROPSET();
            Console.WriteLine(p.rgProperties);
            Console.WriteLine(p.cProperties);
            Console.WriteLine(p.guidPropertySet);
        }
        catch (Exception e)
        {
            Console.WriteLine(e);
            Console.WriteLine("FAILED");
            return 1;
        }
        Console.WriteLine("PASSED");
        return 100;
    }
}