Jo Shields 181b81b4a4 Imported Upstream version 3.12.0
Former-commit-id: cf92446697332992ec36726e78eb8703e1f259d7
2015-01-13 10:44:36 +00:00

24 lines
312 B
C#

// Compiler options: -r:gtest-623-lib.dll
using System;
public class C
{
static bool Test<T> () where T : struct, I
{
var t = new T ();
if (t.GetValue () != 3)
return false;
return true;
}
public static int Main ()
{
if (!Test<S> ())
return 1;
Console.WriteLine ("ok");
return 0;
}
}