+2019-05-21 Tom de Vries <tdevries@suse.de>
+
+ * gdb.arch/amd64-eval.exp: Require c++11.
+ * gdb.base/max-depth.exp: Same.
+ * gdb.compile/compile-cplus-array-decay.exp: Same.
+ * gdb.cp/meth-typedefs.exp: Same.
+ * gdb.cp/subtypes.exp: Same.
+ * gdb.cp/temargs.exp: Same.
+
2019-05-21 Alan Hayward <alan.hayward@arm.com>
* lib/gdbserver-support.exp (gdbserver_run): Mark kill as optional.
standard_testfile .cc
if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
- { debug c++ }] } {
+ { debug c++ additional_flags=-std=c++11 }] } {
return -1
}
# Create the additional flags.
set flags "debug"
lappend flags $lang
+ if { "$lang" == "c++" } {
+ lappend flags "additional_flags=-std=c++11"
+ }
set dir "$lang"
set binfile [standard_output_file ${dir}/${testfile}]
}
if {[prepare_for_testing $testfile $testfile $srcfile \
- {debug nowarnings c++}]} {
+ {debug nowarnings c++ additional_flags=-std=c++11}]} {
return -1
}
# Tests for c++/12266 et al
standard_testfile .cc
-if {[prepare_for_testing "failed to prepare" $testfile $srcfile {c++ debug}]} {
+if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
+ {c++ debug additional_flags=-std=c++11}]} {
return -1
}
standard_testfile .cc subtypes-2.cc
if {[prepare_for_testing "failed to prepare" $testfile \
- [list $srcfile $srcfile2] {debug c++}]} {
+ [list $srcfile $srcfile2] \
+ {debug c++ additional_flags=-std=c++11}]} {
return -1
}
standard_testfile .cc
-if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
+if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
+ {debug c++ additional_flags=-std=c++11}]} {
return -1
}