2022-04-03 20:55:57 +08: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
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2015-06-25 23:12:46 +08:00
|
|
|
#include <assert.h>
|
|
|
|
#include <libunwind.h>
|
|
|
|
|
2020-10-09 01:36:33 +08:00
|
|
|
int main(int, char**) {
|
2015-06-25 23:12:46 +08:00
|
|
|
unw_context_t context;
|
|
|
|
int ret = unw_getcontext(&context);
|
|
|
|
assert(ret == UNW_ESUCCESS);
|
2020-10-09 01:36:33 +08:00
|
|
|
return 0;
|
2015-06-25 23:12:46 +08:00
|
|
|
}
|