treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / tools / testing / selftests / bpf / test_cpp.cpp
bloba8d2e9a87fbfa6a38f121728d7d9fa23a93abdce
1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
2 #include <iostream>
3 #include <bpf/libbpf.h>
4 #include <bpf/bpf.h>
5 #include <bpf/btf.h>
6 #include "test_core_extern.skel.h"
8 /* do nothing, just make sure we can link successfully */
10 int main(int argc, char *argv[])
12 struct test_core_extern *skel;
14 /* libbpf.h */
15 libbpf_set_print(NULL);
17 /* bpf.h */
18 bpf_prog_get_fd_by_id(0);
20 /* btf.h */
21 btf__new(NULL, 0);
23 /* BPF skeleton */
24 skel = test_core_extern__open_and_load();
25 test_core_extern__destroy(skel);
27 std::cout << "DONE!" << std::endl;
29 return 0;