lib/warnings.t should actually run the test in t/lib/warnings/doop
The file containing a single test for a warning in doop.c was added by
commit
0453d815b8a74697 in June 1999. However, as the file does not contain
an __END__ marker, the parser skips the entire contents of the file looking
for the __END__, and then assumes that the file contains no tests. This has
been true since the parser code was first implemented (in t/pragma/warning.t)
in commit
8ebc5c0145d2e355 in Jan 1997.
The simplest fix is to add an __END__ to the start of t/lib/warnings/doop
Also add some sanity checking to ensure that this doesn't happen again.