diff options
author | Jeff Greene <hippiehunterenator@gmail.com> | 2017-10-11 04:29:35 +0300 |
---|---|---|
committer | Morgan Brown <morganbr@users.noreply.github.com> | 2017-10-11 04:29:35 +0300 |
commit | c79eba2eedc59eae4872d20eb505bde783af3e93 (patch) | |
tree | 1a10477f8b280f03be3b5c30f7731b2ef8ce304d /tests | |
parent | baeebd4f5facf198c1252ed7e02940285982d534 (diff) |
implemented ldobj/stobj in terms of ldind/stind (#4709)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/Simple/HelloWasm/Program.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/src/Simple/HelloWasm/Program.cs b/tests/src/Simple/HelloWasm/Program.cs index b61f30491..6e25152c8 100644 --- a/tests/src/Simple/HelloWasm/Program.cs +++ b/tests/src/Simple/HelloWasm/Program.cs @@ -12,6 +12,12 @@ internal static class Program Add(1, 2); int tempInt = 0; (*(&tempInt)) = 9; + + TwoByteStr str = new TwoByteStr() { first = 1, second = 2 }; + TwoByteStr str2 = new TwoByteStr() { first = 3, second = 4 };; + *(&str) = str2; + str2 = *(&str); + if(tempInt == 9) { string s = "Hello from C#!"; |