Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-562.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: efbfbb493fcecc6dd68d6ce6d1263d685ee3997a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
using System.Reflection;
using System.Runtime.InteropServices;

class Program
{
    [DllImport("foo.dll")]
    public static extern void printf(string format, __arglist);

    public static int Main()
    {
        if (typeof (Program).GetMethod ("printf").CallingConvention != CallingConventions.VarArgs)
            return 1;
        
        Console.WriteLine ("OK");
        return 0;
    }
}