rtc: stm32: fix misspelling and misalignment issues
[linux/fpc-iii.git] / tools / build / feature / test-libunwind-aarch64.c
blob323803f49212aaa8c141fa952bff173a2ed6dd1c
1 // SPDX-License-Identifier: GPL-2.0
2 #include <libunwind-aarch64.h>
3 #include <stdlib.h>
5 extern int UNW_OBJ(dwarf_search_unwind_table) (unw_addr_space_t as,
6 unw_word_t ip,
7 unw_dyn_info_t *di,
8 unw_proc_info_t *pi,
9 int need_unwind_info, void *arg);
11 #define dwarf_search_unwind_table UNW_OBJ(dwarf_search_unwind_table)
13 static unw_accessors_t accessors;
15 int main(void)
17 unw_addr_space_t addr_space;
19 addr_space = unw_create_addr_space(&accessors, 0);
20 if (addr_space)
21 return 0;
23 unw_init_remote(NULL, addr_space, NULL);
24 dwarf_search_unwind_table(addr_space, 0, NULL, NULL, 0, NULL);
26 return 0;