% testing label on the last page on its own -- this fails like in the old implementation
\RequirePackage[enable-debug]{expl3}
\ExplSyntaxOn
\debug_on:n { check-declarations , deprecation }
\ExplSyntaxOff
\documentclass{report}
\input{regression-test}
\showoutput
\START
\begin{document}
partlabel=\ref{partlabel}
\part{A} \label{partlabel} % this label is on second page
\end{document}