diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-25 03:03:13 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-25 18:01:41 +0800 |
commit | 640b8af802bf3d33d628b0f2d43a96318a62c2d6 (patch) | |
tree | eaa151c4f9c4a4102c404fc0cef9a9c659f7ef18 /test/libsolidity | |
parent | 167fe7c3706ba19713cd5727b62e7f019ad664d6 (diff) | |
download | dexon-solidity-640b8af802bf3d33d628b0f2d43a96318a62c2d6.tar dexon-solidity-640b8af802bf3d33d628b0f2d43a96318a62c2d6.tar.gz dexon-solidity-640b8af802bf3d33d628b0f2d43a96318a62c2d6.tar.bz2 dexon-solidity-640b8af802bf3d33d628b0f2d43a96318a62c2d6.tar.lz dexon-solidity-640b8af802bf3d33d628b0f2d43a96318a62c2d6.tar.xz dexon-solidity-640b8af802bf3d33d628b0f2d43a96318a62c2d6.tar.zst dexon-solidity-640b8af802bf3d33d628b0f2d43a96318a62c2d6.zip |
Add syntax tests for assembly block type (evmasm)
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/syntaxTests/parsing/assembly_evmasm_type.sol | 5 | ||||
-rw-r--r-- | test/libsolidity/syntaxTests/parsing/assembly_invalid_type.sol | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/assembly_evmasm_type.sol b/test/libsolidity/syntaxTests/parsing/assembly_evmasm_type.sol new file mode 100644 index 00000000..28a07e63 --- /dev/null +++ b/test/libsolidity/syntaxTests/parsing/assembly_evmasm_type.sol @@ -0,0 +1,5 @@ +contract C { + function f() public pure { + assembly "evmasm" {} + } +} diff --git a/test/libsolidity/syntaxTests/parsing/assembly_invalid_type.sol b/test/libsolidity/syntaxTests/parsing/assembly_invalid_type.sol new file mode 100644 index 00000000..c2d39279 --- /dev/null +++ b/test/libsolidity/syntaxTests/parsing/assembly_invalid_type.sol @@ -0,0 +1,7 @@ +contract C { + function f() public pure { + assembly "failasm" {} + } +} +// ---- +// ParserError: (55-64): Only "evmasm" supported. |