diff options
author | Jeff Greene <hippiehunterenator@gmail.com> | 2017-11-06 11:23:49 +0300 |
---|---|---|
committer | Morgan Brown <morganbr@users.noreply.github.com> | 2017-11-06 11:23:49 +0300 |
commit | 9a819d14db26b678e8fd9338084abd1665b18148 (patch) | |
tree | 34f3291b1c44adc621ca894059d0f03265074b00 /tests | |
parent | ff7decc2fdfc22c32c627734c2ff4eda2696911b (diff) |
added support for box/unbox/unbox_any for WASM using malloc (#4731)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/Simple/HelloWasm/Program.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/src/Simple/HelloWasm/Program.cs b/tests/src/Simple/HelloWasm/Program.cs index 2cb0eb895..6d4a5a6e7 100644 --- a/tests/src/Simple/HelloWasm/Program.cs +++ b/tests/src/Simple/HelloWasm/Program.cs @@ -38,6 +38,12 @@ internal static class Program PrintLine("static int field test: Ok."); } + var boxedInt = (object)tempInt; + if(((int)boxedInt) == 9) + { + PrintLine("box test: Ok."); + } + var not = Not(0xFFFFFFFF) == 0x00000000; if (not) { @@ -167,7 +173,7 @@ public struct TwoByteStr public class TestClass { public string TestString {get; set;} - + public TestClass(int number) { if(number != 1337) |