Louis Dionne | cb96c63 | 2022-04-03 08:55:57 -0400 | [diff] [blame^] | 1 | // -*- C++ -*- |
| 2 | //===----------------------------------------------------------------------===// |
| 3 | // |
| 4 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 5 | // See https://llvm.org/LICENSE.txt for license information. |
| 6 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
Logan Chien | 4600418 | 2015-06-25 15:12:46 +0000 | [diff] [blame] | 10 | #include <assert.h> |
| 11 | #include <libunwind.h> |
| 12 | |
Louis Dionne | cbfe017 | 2020-10-08 13:36:33 -0400 | [diff] [blame] | 13 | int main(int, char**) { |
Logan Chien | 4600418 | 2015-06-25 15:12:46 +0000 | [diff] [blame] | 14 | unw_context_t context; |
| 15 | int ret = unw_getcontext(&context); |
| 16 | assert(ret == UNW_ESUCCESS); |
Louis Dionne | cbfe017 | 2020-10-08 13:36:33 -0400 | [diff] [blame] | 17 | return 0; |
Logan Chien | 4600418 | 2015-06-25 15:12:46 +0000 | [diff] [blame] | 18 | } |