Commit Graph

6 Commits

Author SHA1 Message Date
Raffi Enficiaud
c63640cef1 Rewrite example22 and example23
- Functions being optimized: making functions having side-effects to prevent
  optimizations to remove the calls.
- UB (divide by zero) is compiler implementation specific and does not raise
  an exception on CLANG, rewrite the test to serve the purpose of the
  boost.test macro.
2019-02-04 21:59:08 +01:00
Raffi Enficiaud
061e089bf9 Disabling optimization example22/example23 2019-02-02 00:38:49 +01:00
Aaron Gorenstein
26d11fac07 Added BOOST_MSVC version check to test patches 2017-12-25 16:54:53 +01:00
Aaron Gorenstein
0f4c3f0019 Deliberate-failure tests shouldn't be optimized
A few tests designed to deliberately fail appeal to UB (undefined
behavior), but as the MSVC optimizer improves we will take advantage of
that to remove UB statements. In order for deliberate failures to occur,
the tests must have the optimizer turned off.
2017-12-25 16:54:53 +01:00
Gennadiy Rozental
743c67845f Avoid some warnings 2015-06-27 17:54:32 -04:00
Gennadiy Rozental
16fd8be5ad example renamed 2015-06-12 05:37:21 -04:00