From 5d31ad2dafed4354ef4da5f798dba0b0eacad92d Mon Sep 17 00:00:00 2001 From: Mathias Baumann Date: Wed, 5 Dec 2018 11:25:20 +0100 Subject: Test for unhandled default values in expression simplifier --- .../expressionSimplifier/unassigned_vars.yul | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/libyul/yulOptimizerTests/expressionSimplifier/unassigned_vars.yul (limited to 'test') diff --git a/test/libyul/yulOptimizerTests/expressionSimplifier/unassigned_vars.yul b/test/libyul/yulOptimizerTests/expressionSimplifier/unassigned_vars.yul new file mode 100644 index 00000000..87391b8c --- /dev/null +++ b/test/libyul/yulOptimizerTests/expressionSimplifier/unassigned_vars.yul @@ -0,0 +1,14 @@ +// c & d can't be optimized as expression simplifier doesn't handle default +// values yet +{ + let c + let d + let y := add(d, add(c, 7)) +} +// ---- +// expressionSimplifier +// { +// let c +// let d +// let y := add(add(d, c), 7) +// } -- cgit