summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/VS-ia64-JIT/M00/b140298/test.cs
blob: 24a8882c8e6342c5c90edb1fbaf555a37995b07e (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
47
48
49
50
51
52
53
54
55
56
57
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//

using System;

public class History
{
    private static Object with = null;

    public static int Main()
    {
        CreateHistory(null, null, 0, 0, 0, 0, 0, DateTime.Now, 0, "ciao");
        return 100;
    }

    public static History CreateHistory(Object nearobj, Object amode,
           short inCustomerId,
           sbyte inCustomerDistrictId,
           short inCustomerWarehouseId,
           sbyte inDistrictId,
           short inWarehouseId,
           DateTime inDate,
           float inAmount,
           string inData) // 10-th argument goes in callerSP+0x18
    {
        History newHistory = null;
        newHistory = CreateEntity(null, amode, nearobj, with); // this is the call site
        newHistory.initHistory(inCustomerId,
                            inCustomerDistrictId,
                            inCustomerWarehouseId,
                            inDistrictId,
                            inWarehouseId,
                            inDate,
                            inAmount,
                            inData);
        return newHistory;
    }


    public static History CreateEntity(Object a, Object b, Object c, Object d)
    {
        return new History();
    }

    public void initHistory
    (short inCustomerId,
               sbyte inCustomerDistrictId,
               short inCustomerWarehouseId,
               sbyte inDistrictId,
               short inWarehouseId,
               DateTime inDate,
               float inAmount,
               string inData)
    {
    }
}