Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: ee0bc0d176
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (22 sloc) 0.595 kB
using System;
using System.Runtime.InteropServices;
public class Test {
public static int delegate_test (int a)
{
if (a == 2)
return 0;
return 1;
}
[DllImport ("libtest", EntryPoint="mono_test_empty_pinvoke")]
public static extern int mono_test_empty_pinvoke (int i);
public static int Main (String[] args) {
int repeat = 1;
if (args.Length == 1)
repeat = Convert.ToInt32 (args [0]);
Console.WriteLine ("Repeat = " + repeat);
for (int i = 0; i < (repeat * 5000); i++)
for (int j = 0; j < 10000; j++)
mono_test_empty_pinvoke (5);
return 0;
}
}
Jump to Line
Something went wrong with that request. Please try again.