When clang++- -P -E foo.cc fails, show the output

This commit is contained in:
Sylvestre Ledru 2022-04-02 14:17:32 +02:00
parent 703626fba6
commit a51753db83

View File

@ -353,6 +353,8 @@ echo "#include <fenv.h>" > foo.cc
NBLINES=$(clang++-$VERSION -P -E foo.cc|wc -l)
if test $NBLINES -lt 100; then
echo "Error: more than 100 lines should be returned"
echo "output:"
clang++-$VERSION -P -E foo.cc
exit 42
fi