summaryrefslogtreecommitdiff
path: root/tools/perf/config/feature-checks/test-libdw-dwarf-unwind.c
blob: f676a3ff442a43b904adc6bd3061501de5f038d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

#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;
}