libcruft-util/test/backtrace.cpp

20 lines
378 B
C++
Raw Normal View History

2015-04-13 16:45:56 +10:00
#include "backtrace.hpp"
#include "tap.hpp"
#include "stream.hpp"
2011-07-06 19:39:22 +10:00
#include <iostream>
#include <cstdlib>
2016-03-11 13:28:56 +11:00
///////////////////////////////////////////////////////////////////////////////
2011-07-06 19:39:22 +10:00
int
main (int, char **) {
2015-04-13 16:45:56 +10:00
util::TAP::logger tap;
util::stream::null out;
2016-03-11 13:28:56 +11:00
out << debug::backtrace() << std::endl;
2015-04-13 16:45:56 +10:00
tap.noop ();
2011-07-06 19:39:22 +10:00
return EXIT_SUCCESS;
}