\documentclass{article}
% translate with >> pdflatex -shell-escape <file>

% This file is used as unit test for pgfplots, copyright by Christian Feuersaenger.
% 
% See
%   http://pgfplots.sourceforge.net/pgfplots.pdf
% for pgfplots.
%
% Any required input files (for <plot table> or <plot file> or the table package) can be downloaded
% at
% http://www.ctan.org/tex-archive/graphics/pgf/contrib/pgfplots/doc/latex/
% and
% http://www.ctan.org/tex-archive/graphics/pgf/contrib/pgfplots/doc/latex/plotdata/

\usepackage{pgfplots}
\pgfplotsset{compat=newest}

\pagestyle{empty}

\begin{document}

\newcommand\tests{%
\subsubsection{1,2,...,4}
\pgfplotsforeachungrouped \x in {1,2,...,4} {%
	\x

}

\pgfplotsforeachungrouped \x in {1,2,...,4} {%
	\pgfplotsforeachungrouped \y in {1,2,...,4} {%
		(\x,  \y)

	}%

}

\subsubsection{1,...,4}
\pgfplotsforeachungrouped \x in {1,...,4} {%
	\x

}

\pgfplotsforeachungrouped \x in {1,...,4} {%
	\pgfplotsforeachungrouped \y in {1,...,4} {%
		(\x,  \y)

	}%

}

\subsubsection{1,0,...,-4}
\pgfplotsforeachungrouped \x in {1,0,...,-4} {%
	\x

}

\pgfplotsforeachungrouped \x in {1,0,...,-4} {%
	\pgfplotsforeachungrouped \y in {1,0,...,-4} {%
		(\x,  \y)

	}%

}
}%

	\subsection{without FPU}
	{
		\tests
	}

	\subsection{with FPU}
	{
		\pgfkeys{/pgf/fpu}
		\tests
	}

\end{document}

