annotate libunwind/test/unw_getcontext.pass.cpp @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 79ff65ed7e25
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
236
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
1 // -*- C++ -*-
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
2 //===----------------------------------------------------------------------===//
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
3 //
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
5 // See https://llvm.org/LICENSE.txt for license information.
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
7 //
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
8 //===----------------------------------------------------------------------===//
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
9
c4bab56944e8 LLVM 16
kono
parents: 221
diff changeset
10 #undef NDEBUG
150
anatofuz
parents:
diff changeset
11 #include <assert.h>
anatofuz
parents:
diff changeset
12 #include <libunwind.h>
anatofuz
parents:
diff changeset
13
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
14 int main(int, char**) {
150
anatofuz
parents:
diff changeset
15 unw_context_t context;
anatofuz
parents:
diff changeset
16 int ret = unw_getcontext(&context);
anatofuz
parents:
diff changeset
17 assert(ret == UNW_ESUCCESS);
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
18 return 0;
150
anatofuz
parents:
diff changeset
19 }