2022-04-03 08:55:57 -04:00
|
|
|
// -*- C++ -*-
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2022-08-04 15:02:52 -07:00
|
|
|
#undef NDEBUG
|
2015-06-25 15:12:46 +00:00
|
|
|
#include <assert.h>
|
|
|
|
#include <libunwind.h>
|
|
|
|
|
2020-10-08 13:36:33 -04:00
|
|
|
int main(int, char**) {
|
2015-06-25 15:12:46 +00:00
|
|
|
unw_context_t context;
|
|
|
|
int ret = unw_getcontext(&context);
|
|
|
|
assert(ret == UNW_ESUCCESS);
|
2020-10-08 13:36:33 -04:00
|
|
|
return 0;
|
2015-06-25 15:12:46 +00:00
|
|
|
}
|