* Regression tests for the AOT/FULL-AOT code.
*/
-#if MOBILE
+#if __MOBILE__
class AotTests
#else
class Tests
#endif
{
-#if !MOBILE
+#if !__MOBILE__
static int Main (String[] args) {
return TestDriver.RunTests (typeof (Tests), args);
}
* the IL code looks.
*/
-#if MOBILE
+#if __MOBILE__
class ArrayTests
#else
class Tests
#endif
{
-#if !MOBILE
+#if !__MOBILE__
public static int Main (string[] args) {
return TestDriver.RunTests (typeof (Tests), args);
}
* the IL code looks.
*/
-#if MOBILE
+#if __MOBILE__
class CallsTests
#else
class Tests
#endif
{
-#if !MOBILE
+#if !__MOBILE__
public static int Main (string[] args) {
return TestDriver.RunTests (typeof (Tests), args);
}
/* A comparison made to same variable. */
#pragma warning disable 1718
-#if MOBILE
+#if __MOBILE__
class FloatTests
#else
class Tests
#endif
{
-#if !MOBILE
+#if !__MOBILE__
public static int Main (string[] args) {
return TestDriver.RunTests (typeof (Tests), args);
}
* the IL code looks.
*/
-#if MOBILE
+#if __MOBILE__
class LongTests
#else
class Tests
#endif
{
-#if !MOBILE
+#if !__MOBILE__
public static int Main (string[] args) {
return TestDriver.RunTests (typeof (Tests), args);
}
* the IL code looks.
*/
-#if MOBILE
+#if __MOBILE__
class MathTests
#else
class Tests
#endif
{
-#if !MOBILE
+#if !__MOBILE__
public static int Main (string[] args) {
return TestDriver.RunTests (typeof (Tests), args);
}
* the IL code looks.
*/
-#if MOBILE
+#if __MOBILE__
class BasicTests
#else
class Tests
#endif
{
-#if !MOBILE
+#if !__MOBILE__
public static int Main (string[] args) {
return TestDriver.RunTests (typeof (Tests), args);
}
return 0;
}
-}
\ No newline at end of file
+}
* the IL code looks.
*/
-#if MOBILE
+#if __MOBILE__
class ExceptionTests
#else
class Tests
#endif
{
-#if !MOBILE
+#if !__MOBILE__
public static int Main (string[] args) {
return TestDriver.RunTests (typeof (Tests), args);
}
public static int test_0_lmf_filter () {
try {
// The invoke calls a runtime-invoke wrapper which has a filter clause
-#if MOBILE
+#if __MOBILE__
typeof (ExceptionTests).GetMethod ("lmf_filter").Invoke (null, new object [] { });
#else
typeof (Tests).GetMethod ("lmf_filter").Invoke (null, new object [] { });
}
}
-#if !MOBILE
+#if !__MOBILE__
class ExceptionTests : Tests
{
}
-#endif
\ No newline at end of file
+#endif
return (int)lb.o1 + (int)lb.o2 + (int)lb.o3 + (int)lb.o32;
}
-}
\ No newline at end of file
+}
using System.Threading;
using System.Threading.Tasks;
-#if MOBILE
+#if __MOBILE__
class GenericsTests
#else
class Tests
}
}
-#if !MOBILE
+#if !__MOBILE__
class Enumerator <T> : MyIEnumerator <T> {
T MyIEnumerator<T>.Current {
get {
}
#endif
-#if !MOBILE
+#if !__MOBILE__
static int Main (string[] args)
{
return TestDriver.RunTests (typeof (Tests), args);
public static int test_0_constrained_vtype_box () {
GenericClass<TestStruct> t = new GenericClass<TestStruct> ();
-#if MOBILE
+#if __MOBILE__
return t.toString (new TestStruct ()) == "GenericsTests+TestStruct" ? 0 : 1;
#else
return t.toString (new TestStruct ()) == "Tests+TestStruct" ? 0 : 1;
return 0;
}
-#if !MOBILE
+#if !__MOBILE__
public static int test_0_variance_reflection () {
// covariance on IEnumerator
if (!typeof (MyIEnumerator<object>).IsAssignableFrom (typeof (MyIEnumerator<string>)))
}
}
-#if !MOBILE
+#if !__MOBILE__
class GenericsTests : Tests
{
}
// FIXME: Add mixed ref/noref tests, i.e. Dictionary<string, int>
-#if MOBILE
+#if __MOBILE__
public class GSharedTests
#else
public class Tests
#endif
{
-#if !MOBILE
+#if !__MOBILE__
public static int Main (String[] args) {
return TestDriver.RunTests (typeof (Tests), args);
}
}
}
-#if !MOBILE
+#if !__MOBILE__
public class GSharedTests : Tests {
}
#endif
* the IL code looks.
*/
-#if MOBILE
+#if __MOBILE__
namespace ObjectTests
{
#endif
class Tests {
-#if !MOBILE
+#if !__MOBILE__
public static int Main (string[] args) {
return TestDriver.RunTests (typeof (Tests), args);
}
}
}
-#if MOBILE
+#if __MOBILE__
}
#endif