As a companion of CodeWarnings, it'd be nice if we could easily configure a TestCompiler to fail if the generated code calls deprecated code, or expose a deprecated type without suppressing the warning.
Enabling it for every AOT-related tests could also make sure it doesn't surface by accident.