#if !OPTIMIZED_MODE_WITHOUT_SCANNER
TestContainment.Run();
TestInterfaceMethod.Run();
- // Need to implement RhGetCodeTarget for CppCodeGen
-#if !CODEGEN_CPP
TestByRefLikeTypeMethod.Run();
#endif
-#endif
TestILScanner.Run();
TestUnreferencedEnum.Run();
TestInvokeMemberParamsCornerCase.Run();
TestDefaultInterfaceInvoke.Run();
TestCovariantReturnInvoke.Run();
-#if !CODEGEN_CPP
TypeConstructionTest.Run();
TestThreadStaticFields.Run();
TestByRefReturnInvoke.Run();
TestAssemblyLoad.Run();
-#endif
TestBaseOnlyUsedFromCode.Run();
TestEntryPoint.Run();
+
return 100;
}
throw new Exception();
}
-#if !CODEGEN_CPP
{
MethodInfo helloMethod = typeof(InvokeTestsGeneric<string>).GetTypeInfo().GetDeclaredMethod("GetHello");
string result = (string)helloMethod.Invoke(new InvokeTestsGeneric<string>(), new object[] { "world" });
if (result != "Hello 1 System.Double")
throw new Exception();
}
-#endif
}
}
if (!HasTypeHandle(usedNestedType))
throw new Exception($"{nameof(NeverUsedContainerType.UsedNestedType)} should have an EEType");
- // Need to implement exceptions for CppCodeGen
-#if !CODEGEN_CPP
// But the containing type doesn't need an EEType
if (HasTypeHandle(neverUsedContainerType))
throw new Exception($"{nameof(NeverUsedContainerType)} should not have an EEType");
-#endif
}
}
throw new Exception("PartialCanon");
}
-#if !CODEGEN_CPP // https://github.com/dotnet/corert/issues/7799
Console.WriteLine("Search in system assembly");
{
Type t = Type.GetType("System.Runtime.CompilerServices.SuppressIldasmAttribute", throwOnError: false);
throw new Exception("CompilerGlobalScopeAttribute");
}
#endif
-#endif
Console.WriteLine("Enum.GetValues");
{
TestGvmLookupDependency.Run();
TestInvokeMemberCornerCaseInGenerics.Run();
TestRefAny.Run();
-#if !CODEGEN_CPP
TestNullableCasting.Run();
TestVariantCasting.Run();
TestMDArrayAddressMethod.Run();
TestNativeLayoutGeneration.Run();
TestByRefLikeVTables.Run();
-#endif
+
return 100;
}