\documentclass{article}
\usepackage{verbatim}
%\usepackage{sverb}
\usepackage{listings}

\title{Test document for flattening verbatim environments}

\begin{document}
\noindent Some C code through verbatim input:
\verbatiminput{testg.c}
\noindent Starred variant:
\verbatiminput*{testg.c}

% commented out for now as full support for sverb is more complex
%\noindent Through sverb:
%\verbinput{testg.c}

\noindent And through listings without highlighting:
\lstinputlisting{testg.c}

\noindent With syntax highlighting:
\lstinputlisting[language=C]{testg.c}

\end{document}


