diff -r 64c513073b61 gcc/testsuite/g++.dg/lto/lto.exp --- gcc/testsuite/g++.dg/lto/lto.exp Thu Jan 02 13:52:00 2014 +0100 +++ gcc/testsuite/g++.dg/lto/lto.exp Fri Jan 03 11:15:33 2014 +0100 @@ -43,18 +43,18 @@ set sid "cp_lto" # If LTO has not been enabled, bail. -if { ![check_effective_target_lto] } { - return -} +if { [check_effective_target_lto] } { -# Main loop. -foreach src [lsort [find $srcdir/$subdir *_0.C]] { - # If we're only testing specific files and this isn't one of them, skip it. - if ![runtest_file_p $runtests $src] then { - continue + # Main loop. + foreach src [lsort [find $srcdir/$subdir *_0.C]] { + # If we're only testing specific files and this isn't one of them, skip it. + if ![runtest_file_p $runtests $src] then { + continue + } + + lto-execute $src $sid } - lto-execute $src $sid } lto_finish