2 //===----------------------------------------------------------------------===//
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
8 //===----------------------------------------------------------------------===//
10 // Ensure that unw_resume() resumes execution at the stack frame identified by
13 // TODO: Figure out why this fails with Memory Sanitizer.
16 #include <libunwind.h>
18 __attribute__((noinline
)) void test_unw_resume() {
19 unw_context_t context
;
22 unw_getcontext(&context
);
23 unw_init_local(&cursor
, &context
);