Blob Blame History Raw
# cpp-test.exp      2002/12
# to test cpp-test
# imported and modified from dg.exp of GNU C

# Load support procs.
load_lib gcc-dg.exp

# If a testcase doesn't have special options, use these.
global DEFAULT_CFLAGS
if ![info exists DEFAULT_CFLAGS] then {
    set DEFAULT_CFLAGS " -ansi -pedantic-errors"
}

# Initialize `dg'.
dg-init

# Main loop.
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cSC\]]] \
	"" $DEFAULT_CFLAGS

# All done.
dg-finish