annotate libunwind/test/unw_getcontext.pass.cpp @ 221:79ff65ed7e25

LLVM12 Original
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 15 Jun 2021 19:15:29 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 #include <assert.h>
anatofuz
parents:
diff changeset
2 #include <libunwind.h>
anatofuz
parents:
diff changeset
3
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
4 int main(int, char**) {
150
anatofuz
parents:
diff changeset
5 unw_context_t context;
anatofuz
parents:
diff changeset
6 int ret = unw_getcontext(&context);
anatofuz
parents:
diff changeset
7 assert(ret == UNW_ESUCCESS);
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
8 return 0;
150
anatofuz
parents:
diff changeset
9 }