aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorBruno Larsen <blarsen@redhat.com>2022-10-04 19:02:31 +0200
committerBruno Larsen <blarsen@redhat.com>2022-11-11 10:13:51 +0100
commitdb2e277d1a840091f56185d94f9d39c6736d2556 (patch)
treef803e62dfe20752f7ef6aa9f1fe24606a3719447 /gdb
parent2604c0dc3b89dcf7114de4ce71b7556bf4bf6913 (diff)
downloadgdb-db2e277d1a840091f56185d94f9d39c6736d2556.zip
gdb-db2e277d1a840091f56185d94f9d39c6736d2556.tar.gz
gdb-db2e277d1a840091f56185d94f9d39c6736d2556.tar.bz2
gdb/testsuite: disable gdb.cp/call-method-register.exp when not using gcc
The test gdb.cp/call-method-register.exp assumes that the class will be placed on a register. However, this keyword has been deprecated since C++11, and Clang, for instance, does not feel the need to follow it. Since this test is not usable without this working, this commit marks this test as untested. Approved-by: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.cp/call-method-register.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/call-method-register.exp b/gdb/testsuite/gdb.cp/call-method-register.exp
index a1e6498..a98b11e 100644
--- a/gdb/testsuite/gdb.cp/call-method-register.exp
+++ b/gdb/testsuite/gdb.cp/call-method-register.exp
@@ -26,6 +26,11 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
+if {![test_compiler_info gcc-*-* c++]} {
+ untested "test relies on a gcc extension"
+ return
+}
+
proc test_call_register_class {} {
global gdb_prompt