Mercurial > hg > CbC > CbC_llvm
comparison 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 |
comparison
equal
deleted
inserted
replaced
220:42394fc6a535 | 221:79ff65ed7e25 |
---|---|
1 #include <assert.h> | 1 #include <assert.h> |
2 #include <libunwind.h> | 2 #include <libunwind.h> |
3 | 3 |
4 int main() { | 4 int main(int, char**) { |
5 unw_context_t context; | 5 unw_context_t context; |
6 int ret = unw_getcontext(&context); | 6 int ret = unw_getcontext(&context); |
7 assert(ret == UNW_ESUCCESS); | 7 assert(ret == UNW_ESUCCESS); |
8 return 0; | |
8 } | 9 } |