Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMorgan Brown <morganbr@users.noreply.github.com>2017-11-03 12:18:19 +0300
committerGitHub <noreply@github.com>2017-11-03 12:18:19 +0300
commitf760ef3415757e50e30f9af769965bd2a9f6a4de (patch)
tree7fc924298165b2925a02bbb898508a613f0901f4 /tests
parent9eb948aa36ed84898502f01ffc3d4533de875f43 (diff)
Revert "implemented newobj for WASM using malloc (#4808)" (#4864)
This reverts commit 3b9a7fc3fc60fdca245f431bfa40672f087a53d5.
Diffstat (limited to 'tests')
-rw-r--r--tests/src/Simple/HelloWasm/Program.cs25
1 files changed, 1 insertions, 24 deletions
diff --git a/tests/src/Simple/HelloWasm/Program.cs b/tests/src/Simple/HelloWasm/Program.cs
index 2cb0eb895..453a8555e 100644
--- a/tests/src/Simple/HelloWasm/Program.cs
+++ b/tests/src/Simple/HelloWasm/Program.cs
@@ -11,12 +11,10 @@ internal static class Program
private static unsafe void Main(string[] args)
{
Add(1, 2);
- var tempObj = new TestClass(1337);
+
int tempInt = 0;
(*(&tempInt)) = 9;
- tempObj.TestMethod("Hello");
-
if(tempInt == 9)
{
PrintLine("Hello from C#!");
@@ -24,8 +22,6 @@ internal static class Program
TwoByteStr str = new TwoByteStr() { first = 1, second = 2 };
TwoByteStr str2 = new TwoByteStr() { first = 3, second = 4 };
- *(&str) = str2;
- str2 = *(&str);
if (str2.second == 4)
{
@@ -61,7 +57,6 @@ internal static class Program
{
PrintLine("shiftRight test: Ok.");
}
-
var unsignedShift = UnsignedShift(0xFFFFFFFFu, 4) == 0x0FFFFFFFu;
if (unsignedShift)
{
@@ -164,21 +159,3 @@ public struct TwoByteStr
public byte second;
}
-public class TestClass
-{
- public string TestString {get; set;}
-
- public TestClass(int number)
- {
- if(number != 1337)
- throw new Exception();
- }
-
- public void TestMethod(string str)
- {
- TestString = str;
- if(TestString != str)
- throw new Exception();
- }
-}
-