diff options
author | chriseth <chris@ethereum.org> | 2018-12-17 21:07:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-17 21:07:24 +0800 |
commit | bf7d71d6b301a8eb4db0d06b7bf0ad1e6b67e679 (patch) | |
tree | c3c9d4ed59cbedb402269358ecab0cac41a4e414 /test | |
parent | bc85a8915f0cc8214a8b5a4be2410ac935532fa3 (diff) | |
parent | 5ac7620045012c2ed565b81978dc35f5f83f7eea (diff) | |
download | dexon-solidity-bf7d71d6b301a8eb4db0d06b7bf0ad1e6b67e679.tar.gz dexon-solidity-bf7d71d6b301a8eb4db0d06b7bf0ad1e6b67e679.tar.zst dexon-solidity-bf7d71d6b301a8eb4db0d06b7bf0ad1e6b67e679.zip |
Merge pull request #5613 from ethereum/yulStringLiterals
[Yul] 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>(); |