Enable via yul or explain why disabled.

This commit is contained in:
chriseth 2021-01-19 15:06:34 +01:00
parent 66dac95b88
commit 06d19a9203
7 changed files with 22 additions and 2 deletions

View File

@ -1381,6 +1381,8 @@ BOOST_AUTO_TEST_CASE(internal_constructor)
constructor() {} constructor() {}
} }
)"; )";
// via yul disabled because it will throw an error instead of
// returning empty bytecode.
BOOST_CHECK(compileAndRunWithoutCheck({{"", sourceCode}}, 0, "C").empty()); BOOST_CHECK(compileAndRunWithoutCheck({{"", sourceCode}}, 0, "C").empty());
} }

View File

@ -6,6 +6,7 @@ contract C {
mstore(m, 8) mstore(m, 8)
mstore(add(m, 32), "deadbeef15dead") mstore(add(m, 32), "deadbeef15dead")
} }
// via yul disabled because this truncates the string.
x = m; x = m;
assembly { assembly {
r := sload(x.slot) r := sload(x.slot)

View File

@ -63,8 +63,7 @@ contract C {
} }
} }
// found expectation comments: // via yul disabled because of stack issues.
// same offset for both arrays @ ABI_CHECK(
// ==== // ====
// compileViaYul: false // compileViaYul: false

View File

@ -8,6 +8,11 @@ contract C {
r += 1; r += 1;
} }
} }
// via yul disabled because the return variables are
// fresh variables each time, while in the old code generator,
// they share a stack slot when the function is
// invoked multiple times via `_`.
// ==== // ====
// compileViaYul: false // compileViaYul: false
// ---- // ----

View File

@ -8,6 +8,11 @@ contract C {
r += 1; r += 1;
} }
} }
// via yul disabled because the return variables are
// fresh variables each time, while in the old code generator,
// they share a stack slot when the function is
// invoked multiple times via `_`.
// ==== // ====
// compileViaYul: false // compileViaYul: false
// ---- // ----

View File

@ -11,6 +11,11 @@ contract C {
return r; return r;
} }
} }
// via yul disabled because the return variables are
// fresh variables each time, while in the old code generator,
// they share a stack slot when the function is
// invoked multiple times via `_`.
// ==== // ====
// compileViaYul: false // compileViaYul: false
// ---- // ----

View File

@ -58,6 +58,9 @@ contract C {
) )
{} {}
} }
// via yul disabled because of stack issues.
// ==== // ====
// compileViaYul: false // compileViaYul: false
// ---- // ----