`lib/asn1/check-gen.c` almost works with templates, and is a pretty extensive test. The only thing that fails is everything to do with IMPLICIT tags (so, `test_implicit()`). So now we compile `lib/asn1/test.asn1` both, w/ and w/o templating, and we build two programs from `lib/asn1/check-gen.c`: `check-gen` and `check-gen-template`, respectively linking with the non-templated and the templated compilation of `lib/asn1/test.asn1`. Because the template compiler still doesn't support IMPLICIT tagging well, we disable testing of IMPLICIT tags in `check-gen-template`. This will make it much harder to break the template compiler in the future.
55 KiB
55 KiB