If you have the Linux kernel eBPF verifier in mind, it actually has a quite comprehensive test suite:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...
Tests for the corner case that has caused the problem have been added shortly after it was fixed:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...