Inspired by this question about whether the compiler can optimize away a call to a function without side effects. Suppose I have the following code:
delete[]
The compiler cannot see the implementation of delete[] and new[] and must assume it does.
If you had implemented delete[] and new[] above it, the compiler may inline / optimize away those functions entirely.