Content
Today at 5:10 PM That was fun, I wrote a 50-line long unit test that does multiple iterations checking different aspects of some convenience functions and while the test passed, was scratching my head as to why the breakpoint I had set to step through and double check them wasn’t getting hit. Turns out MSVC analyzed my unit test, the preprocessor macros, and the inline functions it used, traced the entire control flow from start to finish and determined that there were no variables that could possibly result in any different outcome, and optimized the entire unit test down to a single return 0; I mean I guess that’s validation that the logic is sound… Is that basically the compiler saying "trust me, bro"?