summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02
diff options
context:
space:
mode:
authorRichard L Ford <richford@microsoft.com>2015-12-03 00:23:02 -0800
committerRichard L Ford <richford@microsoft.com>2015-12-07 20:50:02 -0800
commit99570b16c3a852abc18706c336103c5352f41ba2 (patch)
tree42c28d2fc2c53d65c5ec59aee97553f67c8f9c07 /tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02
parent01fdf5036c24468185e7b6f01976100424183be2 (diff)
downloadcoreclr-99570b16c3a852abc18706c336103c5352f41ba2.tar.gz
coreclr-99570b16c3a852abc18706c336103c5352f41ba2.tar.bz2
coreclr-99570b16c3a852abc18706c336103c5352f41ba2.zip
Port more C# unit tests
The project files were generated automatically from a database and the source files scrubbed and formatted. In addition, some added tests are still failing. Issues were created for these and exclusions added, for windows and for non-windows.
Diffstat (limited to 'tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02')
-rw-r--r--tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b108129/app.config27
-rw-r--r--tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b108129/b108129.csproj54
-rw-r--r--tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b108129/test2.cs56
-rw-r--r--tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b15539/app.config27
-rw-r--r--tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b15539/b15539.csproj54
-rw-r--r--tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b15539/simple.cs36
6 files changed, 254 insertions, 0 deletions
diff --git a/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b108129/app.config b/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b108129/app.config
new file mode 100644
index 0000000000..6f7bbd9d2b
--- /dev/null
+++ b/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b108129/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>
diff --git a/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b108129/b108129.csproj b/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b108129/b108129.csproj
new file mode 100644
index 0000000000..05616db7fa
--- /dev/null
+++ b/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b108129/b108129.csproj
@@ -0,0 +1,54 @@
+<?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 .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>
+ <!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
+ <DebugType></DebugType>
+ <NoLogo>True</NoLogo>
+ <NoStandardLib>True</NoStandardLib>
+ <Noconfig>True</Noconfig>
+ <DefineConstants>$(DefineConstants);DESKTOP</DefineConstants>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="test2.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="$(JitPackagesConfigFileDirectory)extra\project.json" />
+ <None Include="app.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
+ </ItemGroup>
+ <PropertyGroup>
+ <ProjectJson>$(JitPackagesConfigFileDirectory)extra\project.json</ProjectJson>
+ <ProjectLockJson>$(JitPackagesConfigFileDirectory)extra\project.lock.json</ProjectLockJson>
+ </PropertyGroup>
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+ <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
+ </PropertyGroup>
+</Project>
diff --git a/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b108129/test2.cs b/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b108129/test2.cs
new file mode 100644
index 0000000000..1367d1c1ae
--- /dev/null
+++ b/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b108129/test2.cs
@@ -0,0 +1,56 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+using System.Runtime.InteropServices;
+
+namespace JitTest.HFA
+{
+ public class TestCase
+ {
+ [DllImport("test2.dll", EntryPoint = "GetInt32Const")]
+ public static extern int GetInt32Const();
+
+ [DllImport("test2.dll", EntryPoint = "GetInt64Const")]
+ public static extern long GetInt64Const();
+
+ [DllImport("test2.dll", EntryPoint = "GetFloatConst")]
+ public static extern float GetFloatConst();
+
+ [DllImport("test2.dll", EntryPoint = "GetDoubleConst")]
+ public static extern double GetDoubleConst();
+
+ private static int Main()
+ {
+ System.Console.WriteLine("Int32 Const = " + GetInt32Const());
+ System.Console.WriteLine("Int64 Const = " + GetInt64Const());
+ System.Console.WriteLine("Float Const = " + GetFloatConst());
+ System.Console.WriteLine("Double Const = " + GetDoubleConst());
+
+ if (GetInt32Const() != 7)
+ {
+ System.Console.WriteLine("FAILED: GetInt32Const()!=7");
+ System.Console.WriteLine("GetInt32Const() is {0}", GetInt32Const());
+ return 1;
+ }
+ if (GetInt64Const() != 7)
+ {
+ System.Console.WriteLine("FAILED: GetInt64Const()!=7");
+ System.Console.WriteLine("GetInt64Const() is {0}", GetInt64Const());
+ return 1;
+ }
+ if ((GetFloatConst() - 7.777777) > 0.5)
+ {
+ System.Console.WriteLine("FAILED: (GetFloatConst()-7.777777)>0.5");
+ System.Console.WriteLine("GetFloatConst() is {0}", GetFloatConst());
+ return 1;
+ }
+ if ((GetDoubleConst() - 7.777777) > 0.5)
+ {
+ System.Console.WriteLine("FAILED: (GetDoubleConst()-7.777777)>0.5");
+ System.Console.WriteLine("GetDoubleConst() is {0}", GetDoubleConst());
+ return 1;
+ }
+ return 100;
+ }
+ }
+}
diff --git a/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b15539/app.config b/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b15539/app.config
new file mode 100644
index 0000000000..6f7bbd9d2b
--- /dev/null
+++ b/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b15539/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>
diff --git a/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b15539/b15539.csproj b/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b15539/b15539.csproj
new file mode 100644
index 0000000000..373fabd879
--- /dev/null
+++ b/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b15539/b15539.csproj
@@ -0,0 +1,54 @@
+<?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 .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>
+ <!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
+ <DebugType></DebugType>
+ <NoLogo>True</NoLogo>
+ <NoStandardLib>True</NoStandardLib>
+ <Noconfig>True</Noconfig>
+ <DefineConstants>$(DefineConstants);CORECLR</DefineConstants>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="simple.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>
diff --git a/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b15539/simple.cs b/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b15539/simple.cs
new file mode 100644
index 0000000000..cb38a78139
--- /dev/null
+++ b/tests/src/JIT/Regression/VS-ia64-JIT/V1.2-M02/b15539/simple.cs
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE file in the project root for full license information.
+
+using System;
+
+internal struct VC
+{
+ public int x;
+ public int x2;
+
+ public int x3;
+}
+
+
+internal class A
+{
+ public static int Main()
+ {
+ VC vc = new VC();
+ vc.x = 5;
+
+ return test(vc);
+ }
+
+ public static int test(VC vc)
+ {
+ if (vc.x == 5)
+ {
+ Console.WriteLine("PASS");
+ return 100;
+ }
+
+ Console.WriteLine("FAIL");
+ return 0;
+ }
+} \ No newline at end of file