mc-imperial / dredd

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

Avoid mutation to expression inside compile time operator #241

Closed JonathanFoo0523 closed 2 months ago

JonathanFoo0523 commented 2 months ago

Currently, Dredd allow the mutation

sizeof(some_array[0]).

to

sizeof(some_array[-1]).

But the mutation has no effect at all, since the entire expression is convert to the actual size of element of some_array at compile time.