Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

29 lines
768 B
C#

// Compiler options: -r:gtest-434-lib.dll
using System;
using System.Reflection;
namespace testcase
{
public class Init : ConfigurationExpression, IInitializationExpression
{
}
public class Program
{
public static int Main ()
{
var t = typeof (Init);
var m = t.GetMethod ("testcase.IInitializationExpression.AddRegistry", BindingFlags.NonPublic | BindingFlags.Instance);
Console.WriteLine (m.Attributes);
if (m.Attributes != (MethodAttributes.Private | MethodAttributes.Virtual | MethodAttributes.Final | MethodAttributes.HideBySig | MethodAttributes.VtableLayoutMask | MethodAttributes.CheckAccessOnOverride))
return 1;
IInitializationExpression expression = new Init ();
expression.AddRegistry<string> (11);
return 0;
}
}
}