diff options
author | Pat Gavlin <pagavlin@microsoft.com> | 2015-12-15 14:28:20 -0800 |
---|---|---|
committer | Pat Gavlin <pagavlin@microsoft.com> | 2015-12-15 16:21:34 -0800 |
commit | 343ca9efdc632ecba06b5b182b33ce88206a77a2 (patch) | |
tree | 4aa079e6d2883431b9abb8ce6cdbd9e53bb79f51 /tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2 | |
parent | 8338d1100ffa20319aa9e0ad3031ea63ee3b941b (diff) | |
download | coreclr-343ca9efdc632ecba06b5b182b33ce88206a77a2.tar.gz coreclr-343ca9efdc632ecba06b5b182b33ce88206a77a2.tar.bz2 coreclr-343ca9efdc632ecba06b5b182b33ce88206a77a2.zip |
Import additional JIT tests.
These tests were not imported earlier due to missing APIs. In the
case of all APIs besides TypedReference, the sources were adjusted
to accommodate the differences on .Net Core. In the case of
TypedReference, the tests now reference the local mscorlib.
Diffstat (limited to 'tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2')
3 files changed, 120 insertions, 0 deletions
diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2/b448208/Desktop/app.config b/tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2/b448208/Desktop/app.config new file mode 100644 index 0000000000..8077c95440 --- /dev/null +++ b/tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2/b448208/Desktop/app.config @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<configuration> + <runtime> + <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> + <dependentAssembly> + <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> + <bindingRedirect oldVersion="0.0.0.0-4.0.20.0" newVersion="4.0.20.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="System.Text.Encoding" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> + <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> + <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="System.IO" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> + <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="System.Reflection" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> + <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /> + </dependentAssembly> + </assemblyBinding> + </runtime> +</configuration>
\ No newline at end of file diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2/b448208/Desktop/b448208.cs b/tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2/b448208/Desktop/b448208.cs new file mode 100644 index 0000000000..3eb061e593 --- /dev/null +++ b/tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2/b448208/Desktop/b448208.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +using System; +using System.Security; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Threading; +using System.Diagnostics; +using System.Runtime.InteropServices; +using System.Collections; + +public class GenType1<T> +{ + private static readonly int s_i = 0; + + public static bool foo() + { + return s_i == 0; + } +} + +public class cs1 +{ +#pragma warning disable 0414 + internal static int s_i = 0; +#pragma warning restore 0414 + + [MethodImplAttribute(MethodImplOptions.NoInlining)] + public static int Main(String[] args) + { + try + { + GenType1<int>.foo(); + Console.WriteLine("Test SUCCESS"); + return 100; + } + catch (Exception ex) + { + Console.WriteLine(ex); + Console.WriteLine("Test FAILURE"); + return 101; + } + } +} diff --git a/tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2/b448208/Desktop/b448208.csproj b/tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2/b448208/Desktop/b448208.csproj new file mode 100644 index 0000000000..8ffccf683f --- /dev/null +++ b/tests/src/JIT/Regression/CLR-x86-JIT/V2.0-Beta2/b448208/Desktop/b448208.csproj @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <AssemblyName>$(MSBuildProjectName)</AssemblyName> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> + <OutputType>Exe</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <FileAlignment>512</FileAlignment> + <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> + <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath> + <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> + <RestorePackages>true</RestorePackages> + <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp> + </PropertyGroup> + <!-- Default configurations to help VS understand the configurations --> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + </PropertyGroup> + <ItemGroup> + <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> + <Visible>False</Visible> + </CodeAnalysisDependentAssemblyPaths> + </ItemGroup> + <PropertyGroup> + </PropertyGroup> + <ItemGroup> + <Compile Include="b448208.cs" /> + </ItemGroup> + <ItemGroup> + <None Include="$(JitPackagesConfigFileDirectory)minimal\project.json" /> + <None Include="app.config" /> + </ItemGroup> + <ItemGroup> + <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> + </ItemGroup> + <PropertyGroup> + <ProjectJson>$(JitPackagesConfigFileDirectory)minimal\project.json</ProjectJson> + <ProjectLockJson>$(JitPackagesConfigFileDirectory)minimal\project.lock.json</ProjectLockJson> + </PropertyGroup> + <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> + <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> + </PropertyGroup> +</Project>
\ No newline at end of file |