mc-imperial / dredd

Framework for evaluating C/C++ compiler testing tools
Apache License 2.0
11 stars 3 forks source link

Fix braced initalization and binary zero optimizations #226

Closed JamesLee-Jones closed 3 months ago

JamesLee-Jones commented 3 months ago

Previously, when mutating expressions such as char test {24}, the braced initialization expression {24} would also get mutated (as noted in #225). This lead to compilation errors. This is resolved by avoiding the mutation of InitListExpr.

Also, the optimization checks for the case when both arguments to a binary expression were zero was previously wrong (as noted in #222). This is resolved.

Fixes: #222, #225.

JamesLee-Jones commented 3 months ago

This appears to only be failing because of the CI as noted in #227.