181b81b4a4
Former-commit-id: cf92446697332992ec36726e78eb8703e1f259d7
24 lines
312 B
C#
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;
|
|
}
|
|
} |