summaryrefslogtreecommitdiff
path: root/libmudflap/testsuite/libmudflap.c/cfrags.exp
blob: bef2f91c3125de32dfedb689b211aa9905ab3e78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

libmudflap-init [find_gcc]

dg-init

global srcdir
foreach flags [list {} {-static} {-O2} {-O3}] {
    foreach srcfile [lsort [glob -nocomplain ${srcdir}/libmudflap.c/*.c]] {
	set bsrc [file tail $srcfile]
	setenv MUDFLAP_OPTIONS "-viol-segv"
	dg-runtest $srcfile $flags "-fmudflap"
    }
}

dg-finish