test/doc/examples/example22.output
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

8 lines
305 B
Plaintext

//[example_output
> example
Running 1 test case...
unknown location(0): fatal error: in "test_external_interface": std::runtime_error: Undefined Behaviour ahead!
../doc/examples/example22.run-fail.cpp(17): last checkpoint: Calling 'foo' with i=1
*** 1 failure is detected in the test module "example"
//]