#!/bin/sh
if [ "x$GCTLIB" = "x" ]
then
  GCTLIB=`pwd`/../../../../
  PATH=.:`pwd`/../../../..:$PATH
fi

ROOT=../..
. $ROOT/run.source 

clean
make_constant_objects

# Diff takes too long with a huge file.
init s.deref2; make_both s.deref2; lintit s.deref2
U > orig.out; I > inst.out; cmp inst.out orig.out; log_check s.deref2
std_test multi
std_test multi2
std_test multi3

if [ -f MASTER_LOG ]
then
	breport -test-map ${GCTLIB}btool_map MASTER_LOG > REPORT
fi

exit 0
