linux-packaging-mono/mcs/tests/gtest-collectioninit-03.cs

17 lines
222 B
C#
Raw Normal View History

using System.Collections;
class X
{
public static int Main ()
{
object x = null;
R (ref x);
return ((Hashtable)x).Count == 1 ? 0 : 1;
}
static void R (ref object o)
{
o = new Hashtable () { { 1, 2 } };
}
}