#!/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

doit()
{
	echo "$INDENT" " $1"
	gct-ansi -c -B$GCTLIB $1.c > $1.OUT 2>&1
	diff $1.OUT $1.ref
}

make clean
gct-init $GCTLIB
doit types
doit nesting

exit 0
