+// Compiler options: -r:gtest-optional-11-lib.dll
+
using System;
using System.Reflection;
using System.Runtime.InteropServices;
return a;
}
+ public static int TestD ([Optional] int a, int i)
+ {
+ return a;
+ }
+
public static int Main ()
{
if (TestA () != 1)
if (TestC () != Missing.Value)
return 4;
+ if (TestD (i:2) != 0)
+ return 5;
+
+ if (Lib.TestA () != 1)
+ return 11;
+
+ if (Lib.TestB (-4) != 0)
+ return 12;
+
+ if (Lib.TestB ((object) null) != Missing.Value)
+ return 13;
+
+ if (Lib.TestC () != Missing.Value)
+ return 14;
+
+ if (Lib.TestC2 () != null)
+ return 15;
+
+ if (Lib.TestD (i:2) != 0)
+ return 16;
+
+ Lib.TestS ();
+
return 0;
}
}