mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adds tests for --optimize in assembly mode.
This commit is contained in:
parent
6c44c5f0c9
commit
0d1b9c3b1b
@ -262,10 +262,19 @@ SOLTMPDIR=$(mktemp -d)
|
||||
)
|
||||
rm -rf "$SOLTMPDIR"
|
||||
|
||||
printTask "Testing assemble, yul, strict-assembly..."
|
||||
echo '{}' | "$SOLC" - --assemble &>/dev/null
|
||||
echo '{}' | "$SOLC" - --yul &>/dev/null
|
||||
echo '{}' | "$SOLC" - --strict-assembly &>/dev/null
|
||||
printTask "Testing assemble, yul, strict-assembly and optimize..."
|
||||
(
|
||||
echo '{}' | "$SOLC" - --assemble &>/dev/null
|
||||
echo '{}' | "$SOLC" - --yul &>/dev/null
|
||||
echo '{}' | "$SOLC" - --strict-assembly &>/dev/null
|
||||
|
||||
# Test options above in conjunction with --optimize.
|
||||
# Using both, --assemble and --optimize should fail.
|
||||
! echo '{}' | "$SOLC" - --assemble --optimize &>/dev/null
|
||||
echo '{}' | "$SOLC" - --yul --optimize &>/dev/null
|
||||
echo '{}' | "$SOLC" - --strict-assembly --optimize &>/dev/null
|
||||
)
|
||||
|
||||
|
||||
printTask "Testing standard input..."
|
||||
SOLTMPDIR=$(mktemp -d)
|
||||
|
Loading…
Reference in New Issue
Block a user