blob: 95ffcf123267f0695c1276bf6184e09db6a3890d [file] [log] [blame]
Louis Dionnecb96c632022-04-03 08:55:57 -04001// -*- 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 Mayer47974e92022-08-04 15:02:52 -070010#undef NDEBUG
Logan Chien46004182015-06-25 15:12:46 +000011#include <assert.h>
12#include <libunwind.h>
13
Louis Dionnecbfe0172020-10-08 13:36:33 -040014int main(int, char**) {
Logan Chien46004182015-06-25 15:12:46 +000015 unw_context_t context;
16 int ret = unw_getcontext(&context);
17 assert(ret == UNW_ESUCCESS);
Louis Dionnecbfe0172020-10-08 13:36:33 -040018 return 0;
Logan Chien46004182015-06-25 15:12:46 +000019}