2
0
mirror of https://github.com/boostorg/test.git synced 2026-01-27 07:22:11 +00:00
Files
test/doc/v2/examples/example22.cpp
Gennadiy Rozental ced5d625dc after review
2014-11-18 00:12:29 -05:00

19 lines
330 B
C++
Executable File

//[example_code
#define BOOST_TEST_MODULE example
#include <boost/test/included/unit_test.hpp>
extern void foo( int i );
BOOST_AUTO_TEST_CASE( test_external_interface )
{
for( int i = 3; i >=0; i-- ) {
BOOST_TEST_CHECKPOINT( "Calling foo with i=" << i );
foo( i );
}
}
void foo( int i )
{
int j = 2/(i-1);
}
//]