From 81f54a170b1c2db9c77d0f47783543bb6b597bf4 Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 3 Jun 2020 21:54:43 +0200 Subject: [PATCH] Cleanup from storage. --- .../getters/struct_with_bytes_simple.sol | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/libsolidity/semanticTests/getters/struct_with_bytes_simple.sol diff --git a/test/libsolidity/semanticTests/getters/struct_with_bytes_simple.sol b/test/libsolidity/semanticTests/getters/struct_with_bytes_simple.sol new file mode 100644 index 000000000..974ca9e80 --- /dev/null +++ b/test/libsolidity/semanticTests/getters/struct_with_bytes_simple.sol @@ -0,0 +1,17 @@ +contract C { + struct S { + uint a; + bytes b; + mapping(uint => uint) c; + uint[] d; + } + uint shifter; + S public s; + constructor() public { + s.a = 7; + s.b = "abc"; + s.c[0] = 9; + } +} +// ---- +// s() -> 0x07, 0x40, 0x03, 0x6162630000000000000000000000000000000000000000000000000000000000