diff options
author | chriseth <chris@ethereum.org> | 2018-03-16 19:45:12 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-04-12 04:00:21 +0800 |
commit | 4e1ea0866d889daa1144d7c4d89b16cd03cf7dc2 (patch) | |
tree | a3c92f12965608079f0a5a4dec546326b898ecb9 /test/libsolidity/syntaxTests/modifiers/function_modifier_invocation.sol | |
parent | 2ad1acaf721072d27783d586048d6377be6c3f99 (diff) | |
download | dexon-solidity-4e1ea0866d889daa1144d7c4d89b16cd03cf7dc2.tar.gz dexon-solidity-4e1ea0866d889daa1144d7c4d89b16cd03cf7dc2.tar.zst dexon-solidity-4e1ea0866d889daa1144d7c4d89b16cd03cf7dc2.zip |
Extract modifier tests.
Diffstat (limited to 'test/libsolidity/syntaxTests/modifiers/function_modifier_invocation.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/modifiers/function_modifier_invocation.sol | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/modifiers/function_modifier_invocation.sol b/test/libsolidity/syntaxTests/modifiers/function_modifier_invocation.sol new file mode 100644 index 00000000..e15fcf49 --- /dev/null +++ b/test/libsolidity/syntaxTests/modifiers/function_modifier_invocation.sol @@ -0,0 +1,5 @@ +contract B { + function f() mod1(2, true) mod2("0123456") pure public { } + modifier mod1(uint a, bool b) { if (b) _; } + modifier mod2(bytes7 a) { while (a == "1234567") _; } +} |