\documentclass[11pt,a4paper]{article}

\author{No Author}
\title{Test bib}
\date{\today}
\begin{document}
\maketitle
\tableofcontents

\section{Only Section}

This is a test document with a single citation \cite{testarticle}.

\subsection{Empty subsection}

\bibliographystyle{plain}
\bibliography{refs}

\end{document}
