libcruft-util/test/backtrace.cpp

21 lines
418 B
C++
Raw Normal View History

#include <cruft/util/backtrace.hpp>
#include <cruft/util/tap.hpp>
#include <cruft/util/stream.hpp>
#include <cstdlib>
///////////////////////////////////////////////////////////////////////////////
int
main (int, char **) {
cruft::TAP::logger tap;
2019-01-03 15:48:34 +11:00
// Instantiate a backtrace just so we know that linking has worked.
::cruft::backtrace foo;
2019-01-03 15:48:34 +11:00
(void)foo;
tap.noop ();
return tap.status ();
}