ubuntu-linux-kernel/tools/build/feature/test-libdw-dwarf-unwind.c

15 lines
309 B
C
Raw Normal View History

2024-04-01 15:06:58 +00:00
// SPDX-License-Identifier: GPL-2.0
#include <elfutils/libdwfl.h>
int main(void)
{
/*
* This function is guarded via: __nonnull_attribute__ (1, 2).
* Passing '1' as arguments value. This code is never executed,
* only compiled.
*/
dwfl_thread_getframes((void *) 1, (void *) 1, NULL);
return 0;
}