% The asymptote run replaces the .aux file with an empty one.
% This is probably a bug in asymptote.
\documentclass{minimal}
\usepackage{asymptote}
\begin{document}
See page \pageref{lbl}.

\begin{asy}
  import graph;
  draw ((0,0)--(100,100));
  axes ();
\end{asy}

\label{lbl}Ipsum.
\end{document}
