diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-12-10 11:25:51 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-12-13 01:45:43 +0800 |
commit | 5ac7620045012c2ed565b81978dc35f5f83f7eea (patch) | |
tree | 349169b91c08264dbc7c5e831ceecd6577adf3e8 /test | |
parent | e85c3428b483192e8e3d4255d619f31a48c08bef (diff) | |
download | dexon-solidity-5ac7620045012c2ed565b81978dc35f5f83f7eea.tar dexon-solidity-5ac7620045012c2ed565b81978dc35f5f83f7eea.tar.gz dexon-solidity-5ac7620045012c2ed565b81978dc35f5f83f7eea.tar.bz2 dexon-solidity-5ac7620045012c2ed565b81978dc35f5f83f7eea.tar.lz dexon-solidity-5ac7620045012c2ed565b81978dc35f5f83f7eea.tar.xz dexon-solidity-5ac7620045012c2ed565b81978dc35f5f83f7eea.tar.zst dexon-solidity-5ac7620045012c2ed565b81978dc35f5f83f7eea.zip |
Use C++ user-defined literals for creating YulString constants.
Diffstat (limited to 'test')
-rw-r--r-- | test/libyul/Parser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/libyul/Parser.cpp b/test/libyul/Parser.cpp index 5e9fba86..df7e32a1 100644 --- a/test/libyul/Parser.cpp +++ b/test/libyul/Parser.cpp @@ -311,7 +311,7 @@ BOOST_AUTO_TEST_CASE(builtins_parser) SimpleDialect(): Dialect(AsmFlavour::Strict) {} BuiltinFunction const* builtin(YulString _name) const override { - return _name == YulString{"builtin"} ? &f : nullptr; + return _name == "builtin"_yulstring ? &f : nullptr; } BuiltinFunction f; }; @@ -329,9 +329,9 @@ BOOST_AUTO_TEST_CASE(builtins_analysis) SimpleDialect(): Dialect(AsmFlavour::Strict) {} BuiltinFunction const* builtin(YulString _name) const override { - return _name == YulString{"builtin"} ? &f : nullptr; + return _name == "builtin"_yulstring ? &f : nullptr; } - BuiltinFunction f{YulString{"builtin"}, vector<Type>(2), vector<Type>(3), false}; + BuiltinFunction f{"builtin"_yulstring, vector<Type>(2), vector<Type>(3), false}; }; shared_ptr<Dialect> dialect = make_shared<SimpleDialect>(); |