diff options
author | Jeff Greene <hippiehunterenator@gmail.com> | 2017-10-11 03:05:02 +0300 |
---|---|---|
committer | Morgan Brown <morganbr@users.noreply.github.com> | 2017-10-11 03:05:02 +0300 |
commit | baeebd4f5facf198c1252ed7e02940285982d534 (patch) | |
tree | 3cca70ba0b61caba79fd53d8bef41ef09574dcc0 /tests | |
parent | 3f535bc5ab533146068492249053c7397808a08b (diff) |
added support for stind in WASM (#4702)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/Simple/HelloWasm/Program.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/src/Simple/HelloWasm/Program.cs b/tests/src/Simple/HelloWasm/Program.cs index 367a23c79..b61f30491 100644 --- a/tests/src/Simple/HelloWasm/Program.cs +++ b/tests/src/Simple/HelloWasm/Program.cs @@ -10,9 +10,13 @@ internal static class Program private static unsafe void Main(string[] args) { Add(1, 2); - - string s = "Hello from C#!"; - PrintString(s, 14); + int tempInt = 0; + (*(&tempInt)) = 9; + if(tempInt == 9) + { + string s = "Hello from C#!"; + PrintString(s, 14); + } } private static unsafe void PrintString(string s, int length) |