17b65e203SJiri Olsa // SPDX-License-Identifier: GPL-2.0 27b65e203SJiri Olsa #include <bpf/libbpf.h> 37b65e203SJiri Olsa 4*56d52294SIan Rogers #if !defined(LIBBPF_MAJOR_VERSION) || (LIBBPF_MAJOR_VERSION < 1) 5*56d52294SIan Rogers #error At least libbpf 1.0 is required for Linux tools. 6*56d52294SIan Rogers #endif 7*56d52294SIan Rogers main(void)87b65e203SJiri Olsaint main(void) 97b65e203SJiri Olsa { 107b65e203SJiri Olsa return bpf_object__open("test") ? 0 : -1; 117b65e203SJiri Olsa } 12