selftests/bpf: Make sure enum-less bpf_enable_stats() API works in C++ mode
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 30 Nov 2022 20:00:13 +0000 (12:00 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 30 Nov 2022 21:56:47 +0000 (22:56 +0100)
commitf8186bf65ae6a4ce96d5cf52c2c9481c0e2193ce
tree032706f69aad81d9b585ecbe708d13f149b2f0b2
parentb42693415b86f608049cf1b4870adc1dc65e58b0
selftests/bpf: Make sure enum-less bpf_enable_stats() API works in C++ mode

Just a simple test to make sure we don't introduce unwanted compiler
warnings and API still supports passing enums as input argument.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20221130200013.2997831-2-andrii@kernel.org
tools/testing/selftests/bpf/test_cpp.cpp