//@ run-pass
//@ compile-flags:--test
// This verifies that the test generation doesn't crash when we have
// no tests - for more information, see PR #16892.