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 10 #include <assert.h> 11 #include <libunwind.h> 12 main(int,char **)13int main(int, char**) { 14 unw_context_t context; 15 int ret = unw_getcontext(&context); 16 assert(ret == UNW_ESUCCESS); 17 return 0; 18 } 19