diff options
author | Tom de Vries <tdevries@suse.de> | 2019-05-21 16:32:41 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2019-05-21 16:32:41 +0200 |
commit | 669d0468399d8375f4d25289938a0c06d12e7f2e (patch) | |
tree | d23176ea576a95e6656620b0c309d2d02da04db6 /gdb/testsuite/gdb.base | |
parent | 8fe9a076adf308ec813246a96f915c5ab5b6a75f (diff) | |
download | binutils-669d0468399d8375f4d25289938a0c06d12e7f2e.zip binutils-669d0468399d8375f4d25289938a0c06d12e7f2e.tar.gz binutils-669d0468399d8375f4d25289938a0c06d12e7f2e.tar.bz2 |
[gdb/testsuite] Require c++11 where necessary
When building gdb on ubuntu 16.04 with gcc 5.4.0, and running the gdb
testsuite we run into failures due test-cases requiring at least c++1.
Fix this by adding -std=c++11 to those test-cases.
Tested on x86_64-linux.
gdb/testsuite/ChangeLog:
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.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r-- | gdb/testsuite/gdb.base/max-depth.exp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/max-depth.exp b/gdb/testsuite/gdb.base/max-depth.exp index b3b7876..99f3c98 100644 --- a/gdb/testsuite/gdb.base/max-depth.exp +++ b/gdb/testsuite/gdb.base/max-depth.exp @@ -39,6 +39,9 @@ proc compile_and_run_tests { lang } { # 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}] |