-# Copyright 2011-2012 Free Software Foundation, Inc.
+# Copyright 2011-2016 Free Software Foundation, Inc.
#
# Contributed by Red Hat, originally written by Keith Seitz.
#
set conditional2 "if (A::outer::func ())"
foreach ovld [array names tests] {
set method "${class}::foo ($ovld) const"
- set result "Breakpoint (\[0-9\]).*file .*/ovsrch$tests($ovld).*"
+ set result "Breakpoint (\[0-9\]).*file .*ovsrch$tests($ovld).*"
gdb_test "break $method" $result
gdb_test "break '$method'" $result
if { [skip_cplus_tests] } { continue }
# Test for c++/11734
-set testfile "ovsrch"
-set binfile [file join $objdir $subdir $testfile]
+standard_testfile ovsrch1.cc ovsrch2.cc ovsrch3.cc ovsrch4.cc
-set srcfiles {}
-for {set i 1} {$i < 5} {incr i} {
- lappend srcfiles $testfile$i.cc
-}
-
-if {[prepare_for_testing $testfile $testfile $srcfiles {c++ debug}]} {
+if {[prepare_for_testing $testfile $testfile \
+ [list $srcfile $srcfile2 $srcfile3 $srcfile4] {c++ debug}]} {
return -1
}