diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-25 03:04:21 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-25 18:01:41 +0800 |
commit | 008eb1c2c9830f655bbfb91865d463828dbffe1d (patch) | |
tree | 6cc881189933b4f4151807cb59559fbbb170068a /test/libsolidity/syntaxTests/emit_empty.sol | |
parent | 640b8af802bf3d33d628b0f2d43a96318a62c2d6 (diff) | |
download | dexon-solidity-008eb1c2c9830f655bbfb91865d463828dbffe1d.tar dexon-solidity-008eb1c2c9830f655bbfb91865d463828dbffe1d.tar.gz dexon-solidity-008eb1c2c9830f655bbfb91865d463828dbffe1d.tar.bz2 dexon-solidity-008eb1c2c9830f655bbfb91865d463828dbffe1d.tar.lz dexon-solidity-008eb1c2c9830f655bbfb91865d463828dbffe1d.tar.xz dexon-solidity-008eb1c2c9830f655bbfb91865d463828dbffe1d.tar.zst dexon-solidity-008eb1c2c9830f655bbfb91865d463828dbffe1d.zip |
Add syntax test for empty emit statement
Diffstat (limited to 'test/libsolidity/syntaxTests/emit_empty.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/emit_empty.sol | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/emit_empty.sol b/test/libsolidity/syntaxTests/emit_empty.sol new file mode 100644 index 00000000..819d88fe --- /dev/null +++ b/test/libsolidity/syntaxTests/emit_empty.sol @@ -0,0 +1,7 @@ +contract C { + function f() public { + emit; + } +} +// ---- +// ParserError: (45-46): Expected event name or path. |