summaryrefslogtreecommitdiff
path: root/libmudflap/testsuite/libmudflap.c/cfrags.exp
blob: bdaf2196cb7fa7971cb620480d73942b5e47a85f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
global MUDFLAP_FLAGS
set MUDFLAP_FLAGS [list {} {-static} {-O2} {-O3}]

libmudflap-init c

dg-init

global srcdir
foreach flags $MUDFLAP_FLAGS {
    foreach srcfile [lsort [glob -nocomplain \
                            ${srcdir}/libmudflap.c/*frag.c \
                            ${srcdir}/libmudflap.c/heap*.c \
                            ${srcdir}/libmudflap.c/hook*.c \
                            ${srcdir}/libmudflap.c/pass*.c]] {
	set bsrc [file tail $srcfile]
	setenv MUDFLAP_OPTIONS "-viol-segv"
	dg-runtest $srcfile $flags "-fmudflap -lmudflap"
    }
}

dg-finish