E.g., what happens when you type clang -O3 -O0?
Is the behavior the same as in gcc? I.e., all but the last optimization flags are ignored (described here and here)?
I looked up in the manual page for clang but couldn't find an explanation in the optimization flag section.
Is it undefined behaviour?