mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Commandline test for unimplemented IR.
This commit is contained in:
parent
8c8c83a104
commit
2f41245e43
@ -188,6 +188,7 @@ def examine_id_coverage(top_dir, source_id_to_file_names, new_ids_only=False):
|
||||
# Warning (1878): SPDX license identifier not provided in source file. ....
|
||||
# Warning (3420): Source file does not specify required compiler version!
|
||||
test_ids |= find_ids_in_cmdline_test_err(path.join(top_dir, "test", "cmdlineTests", "error_codes", "err"))
|
||||
test_ids |= find_ids_in_cmdline_test_err(path.join(top_dir, "test", "cmdlineTests", "yul_unimplemented", "err"))
|
||||
|
||||
# white list of ids which are not covered by tests
|
||||
white_ids = {
|
||||
|
@ -124,6 +124,7 @@ function test_solc_behaviour()
|
||||
sed -i.bak -e '/^Warning (3805): This is a pre-release compiler version, please do not use it in production./d' "$stderr_path"
|
||||
sed -i.bak -e 's/\(^[ ]*auxdata: \)0x[0-9a-f]*$/\1AUXDATA REMOVED/' "$stdout_path"
|
||||
sed -i.bak -e 's/ Consider adding "pragma .*$//' "$stderr_path"
|
||||
sed -i.bak -e 's/\(Unimplemented feature error: .* in \).*$/\1FILENAME REMOVED/' "$stderr_path"
|
||||
sed -i.bak -e 's/"version": "[^"]*"/"version": "VERSION REMOVED"/' "$stdout_path"
|
||||
# Remove trailing empty lines. Needs a line break to make OSX sed happy.
|
||||
sed -i.bak -e '1{/^$/d
|
||||
|
1
test/cmdlineTests/yul_unimplemented/args
Normal file
1
test/cmdlineTests/yul_unimplemented/args
Normal file
@ -0,0 +1 @@
|
||||
--ir --error-codes
|
5
test/cmdlineTests/yul_unimplemented/err
Normal file
5
test/cmdlineTests/yul_unimplemented/err
Normal file
@ -0,0 +1,5 @@
|
||||
Error (1834): Unimplemented feature error: setToZero for type t_struct$_S_$4_storage not yet implemented! in FILENAME REMOVED
|
||||
--> yul_unimplemented/input.sol:9:9:
|
||||
|
|
||||
9 | delete str;
|
||||
| ^^^^^^^^^^
|
1
test/cmdlineTests/yul_unimplemented/exit
Normal file
1
test/cmdlineTests/yul_unimplemented/exit
Normal file
@ -0,0 +1 @@
|
||||
1
|
11
test/cmdlineTests/yul_unimplemented/input.sol
Normal file
11
test/cmdlineTests/yul_unimplemented/input.sol
Normal file
@ -0,0 +1,11 @@
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity >=0.0;
|
||||
contract test {
|
||||
struct S {
|
||||
uint x;
|
||||
}
|
||||
S str;
|
||||
constructor() {
|
||||
delete str;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user