Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ee0bc0d176
Fetching contributors…

Cannot retrieve contributors at this time

file 31 lines (23 sloc) 0.481 kb
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
using System;
using System.Threading;

// Regression test for bug #59299

public class Test
{
delegate void M(ref object x, ref object y);

public static void Foo(ref object x, ref object y)
{
x = 20;
y = 30;
}

public static int Main()
{
IAsyncResult ar;
M m = new M(Foo);
object x1 = 10, x2 = 10;

ar = m.BeginInvoke(ref x1, ref x2, null, null);

m.EndInvoke(ref x1, ref x2, ar);

if ((int)x1 != 20 || (int)x2 != 30)
return 1;

return 0;
}
}
Something went wrong with that request. Please try again.