File: cpp-test.exp

package info (click to toggle)
mcpp 2.7.2-1.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,148 kB
  • sloc: ansic: 35,244; sh: 9,241; makefile: 176; cpp: 84; exp: 18
file content (22 lines) | stat: -rw-r--r-- 457 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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