#!/bin/sh

# Note:  use sed to strip blanks because not all systems have same version
# of diff.

if [ "x$GCTLIB" = "x" ]
then
  GCTLIB=`pwd`/../../../../
  PATH=.:`pwd`/../../../..:$PATH
  export PATH
fi


# Just make sure that -E works -- since it's used in the bug-reporting
# procedure, it would be embarrassing if it didn't.


make clean
gct-init $GCTLIB
gct -B$GCTLIB -E test.c > test.log
diff test.log test.ref
if [ -f test.o ]
then
	echo "FAILURE:  Should not have created .o file."
fi
exit 0
