diff options
author | Jeff Greene <hippiehunterenator@gmail.com> | 2017-12-08 13:44:13 +0300 |
---|---|---|
committer | Morgan Brown <morganbr@users.noreply.github.com> | 2017-12-08 13:44:13 +0300 |
commit | 8300e1f69fc36b2fb913cf2b56859a7d7990cce6 (patch) | |
tree | 4e4fb8f685cc856c357d9310486de24328527092 /tests | |
parent | b2068273c52ca7392bb5ca3aac4299c007d9a743 (diff) |
Added real support for Unbox stubs to WebAssembly (#5052)
* Added real support for Unbox stubs to WebAssembly
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/Simple/HelloWasm/Program.cs | 12 | ||||
-rw-r--r-- | tests/src/Simple/SimpleTest.targets | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/tests/src/Simple/HelloWasm/Program.cs b/tests/src/Simple/HelloWasm/Program.cs index 7812c8563..2d3a44e96 100644 --- a/tests/src/Simple/HelloWasm/Program.cs +++ b/tests/src/Simple/HelloWasm/Program.cs @@ -58,6 +58,9 @@ internal static class Program PrintLine("box test: Ok."); } + var boxedStruct = (object)new BoxStubTest { Value = "Boxed Stub Test: Ok." }; + PrintLine(boxedStruct.ToString()); + var not = Not(0xFFFFFFFF) == 0x00000000; if (not) { @@ -184,6 +187,15 @@ public struct TwoByteStr public byte second; } +public struct BoxStubTest +{ + public string Value; + public override string ToString() + { + return Value; + } +} + public class TestClass { public string TestString {get; set;} diff --git a/tests/src/Simple/SimpleTest.targets b/tests/src/Simple/SimpleTest.targets index 8046bee3d..3c22a2ee6 100644 --- a/tests/src/Simple/SimpleTest.targets +++ b/tests/src/Simple/SimpleTest.targets @@ -54,7 +54,7 @@ <IlcArg Include="--targetarch=$(Platform)" /> <!-- Broken on wasm: https://github.com/dotnet/corert/issues/5005 --> - <IlcArg Condition="$(NativeCodeGen) != 'wasm'" Include="--stacktracedata" /> + <IlcArg Include="--stacktracedata" /> </ItemGroup> </Project> |