mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Enable via yul or explain why disabled.
This commit is contained in:
parent
66dac95b88
commit
06d19a9203
@ -1381,6 +1381,8 @@ BOOST_AUTO_TEST_CASE(internal_constructor)
|
||||
constructor() {}
|
||||
}
|
||||
)";
|
||||
// via yul disabled because it will throw an error instead of
|
||||
// returning empty bytecode.
|
||||
BOOST_CHECK(compileAndRunWithoutCheck({{"", sourceCode}}, 0, "C").empty());
|
||||
}
|
||||
|
||||
|
@ -6,6 +6,7 @@ contract C {
|
||||
mstore(m, 8)
|
||||
mstore(add(m, 32), "deadbeef15dead")
|
||||
}
|
||||
// via yul disabled because this truncates the string.
|
||||
x = m;
|
||||
assembly {
|
||||
r := sload(x.slot)
|
||||
|
@ -63,8 +63,7 @@ contract C {
|
||||
}
|
||||
}
|
||||
|
||||
// found expectation comments:
|
||||
// same offset for both arrays @ ABI_CHECK(
|
||||
// via yul disabled because of stack issues.
|
||||
|
||||
// ====
|
||||
// compileViaYul: false
|
||||
|
@ -8,6 +8,11 @@ contract C {
|
||||
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
|
||||
// ----
|
||||
|
@ -8,6 +8,11 @@ contract C {
|
||||
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
|
||||
// ----
|
||||
|
@ -11,6 +11,11 @@ contract C {
|
||||
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
|
||||
// ----
|
||||
|
@ -58,6 +58,9 @@ contract C {
|
||||
)
|
||||
{}
|
||||
}
|
||||
|
||||
// via yul disabled because of stack issues.
|
||||
|
||||
// ====
|
||||
// compileViaYul: false
|
||||
// ----
|
||||
|
Loading…
Reference in New Issue
Block a user