aboutsummaryrefslogtreecommitdiffstats
path: root/test/libyul/Parser.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-12-17 21:07:24 +0800
committerGitHub <noreply@github.com>2018-12-17 21:07:24 +0800
commitbf7d71d6b301a8eb4db0d06b7bf0ad1e6b67e679 (patch)
treec3c9d4ed59cbedb402269358ecab0cac41a4e414 /test/libyul/Parser.cpp
parentbc85a8915f0cc8214a8b5a4be2410ac935532fa3 (diff)
parent5ac7620045012c2ed565b81978dc35f5f83f7eea (diff)
downloaddexon-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/libyul/Parser.cpp')
-rw-r--r--test/libyul/Parser.cpp6
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>();