libcruft-util/test/backtrace.cpp

21 lines
385 B
C++
Raw Normal View History

#include "backtrace.hpp"
#include "tap.hpp"
#include "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 ();
}