has_backtrace.cpp 356 B

123456789101112131415
  1. // Copyright Antony Polukhin, 2016-2019.
  2. //
  3. // Distributed under the Boost Software License, Version 1.0. (See
  4. // accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. #include <backtrace.h>
  7. #include <unwind.h>
  8. int main() {
  9. backtrace_state* state = backtrace_create_state(
  10. 0, 1, 0, 0
  11. );
  12. (void)state;
  13. }