selftests/bpf: Tests for enum fwd resolved as full enum64
authorEduard Zingerman <eddyz87@gmail.com>
Tue, 1 Nov 2022 23:54:13 +0000 (01:54 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 4 Nov 2022 20:10:48 +0000 (13:10 -0700)
commit2e20f50ff84903964bcfca10ecdab0fa08cd6a4c
tree486247d9d20c2779cc4e4b0ea45a2253c39af03b
parentde048b6ee86597c6079a5ed3a1cca996089a83d3
selftests/bpf: Tests for enum fwd resolved as full enum64

A set of test cases to verify enum fwd resolution logic:
- verify that enum fwd can be resolved as full enum64;
- verify that enum64 fwd can be resolved as full enum;
- verify that enum size is considered when enums are compared for
  equivalence.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20221101235413.1824260-2-eddyz87@gmail.com
tools/testing/selftests/bpf/prog_tests/btf.c