diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/lto/lto.exp')
-rw-r--r-- | gcc/testsuite/g++.dg/lto/lto.exp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/testsuite/g++.dg/lto/lto.exp b/gcc/testsuite/g++.dg/lto/lto.exp index 62d8250314..4d7d727b98 100644 --- a/gcc/testsuite/g++.dg/lto/lto.exp +++ b/gcc/testsuite/g++.dg/lto/lto.exp @@ -1,4 +1,4 @@ -# Copyright (C) 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -35,6 +35,11 @@ load_lib target-libpath.exp # Load the language-independent compabibility support procedures. load_lib lto.exp +# If LTO has not been enabled, bail. +if { ![check_effective_target_lto] } { + return +} + g++_init lto_init no-mathlib @@ -42,13 +47,8 @@ lto_init no-mathlib # with other lto tests running at the same time. set sid "cp_lto" -# If LTO has not been enabled, bail. -if { ![check_effective_target_lto] } { - return -} - # Main loop. -foreach src [lsort [find $srcdir/$subdir *_0.C]] { +foreach src [lsort [find $srcdir/$subdir *_0.\[cC\]]] { # If we're only testing specific files and this isn't one of them, skip it. if ![runtest_file_p $runtests $src] then { continue |