gcc/libmudflap/testsuite/libmudflap.c++/c++frags.exp
Richard Guenther 78b4053c6e ctors.exp: Explicitely specify -O0.
2012-07-13  Richard Guenther  <rguenther@suse.de>

	* testsuite/libmudflap.c++/ctors.exp: Explicitely specify -O0.
	* testsuite/libmudflap.c++/c++frags.exp: Likewise.
	* testsuite/libmudflap.cth/cthfrags.exp: Likewise.
	* testsuite/libmudflap.c/cfrags.exp: Likewise.
	* testsuite/libmudflap.c/externs.exp: Likewise.

From-SVN: r189464
2012-07-13 13:25:13 +00:00

23 lines
449 B
Plaintext

global MUDFLAP_FLAGS
set MUDFLAP_FLAGS [list {-O0} {-static} { -O} {-O2} {-O3}]
libmudflap-init c++
if {$cxx == "g++"} then {
unsupported "g++ not found"
return
}
dg-init
global srcdir
foreach flags $MUDFLAP_FLAGS {
foreach srcfile [lsort [glob -nocomplain ${srcdir}/libmudflap.c++/*frag.cxx]] {
set bsrc [file tail $srcfile]
setenv MUDFLAP_OPTIONS "-viol-segv"
dg-runtest $srcfile $flags "-fmudflap -lmudflap"
}
}
dg-finish