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 | |
Florian Mayer | 47974e9 | 2022-08-04 15:02:52 -0700 | [diff] [blame^] | 10 | #undef NDEBUG |
Logan Chien | 4600418 | 2015-06-25 15:12:46 +0000 | [diff] [blame] | 11 | #include <assert.h> |
| 12 | #include <libunwind.h> |
| 13 | |
Louis Dionne | cbfe017 | 2020-10-08 13:36:33 -0400 | [diff] [blame] | 14 | int main(int, char**) { |
Logan Chien | 4600418 | 2015-06-25 15:12:46 +0000 | [diff] [blame] | 15 | unw_context_t context; |
| 16 | int ret = unw_getcontext(&context); |
| 17 | assert(ret == UNW_ESUCCESS); |
Louis Dionne | cbfe017 | 2020-10-08 13:36:33 -0400 | [diff] [blame] | 18 | return 0; |
Logan Chien | 4600418 | 2015-06-25 15:12:46 +0000 | [diff] [blame] | 19 | } |