Testing
CI on GCC, Clang and MSVC, a compile-fail suite, and a zero-allocation test.
CI builds with GCC 11, Clang 14 and MSVC with warnings as errors, and Clang also runs ASan and UBSan.
Compile-fail suite: each case in tests/compile_fail/ must fail to build with its exact error message.
Allocation test: a counting allocator checks that 500 dispatches make zero heap allocations.
Behaviour tests: these cover every transition, every unmatched state and event pair, data preservation when an event is rejected, self transitions, copy semantics and throwing guards.