The problem you are talking of is actually a miscompilation. Why do you expect miscompiled code to work correctly? I can think of other means to miscompile code, so what?