]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.cp/operator.exp
Update copyright year range in header of all files managed by GDB
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.cp / operator.exp
index fce5c373c3aaaaddfe196fad20d2f476b9b4488a..504001d9dc9f57fccf0fbde6af6868d35ec1683e 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2008-2016 Free Software Foundation, Inc.
+# Copyright 2008-2024 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
 
 standard_testfile .cc
 
-if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug c++}] } {
+if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
+         {debug c++ additional_flags=-Wno-unused-comparison}] } {
     return -1
 }
 
 ############################################
 
-if ![runto_main] then {
-    perror "couldn't run to breakpoint main"
-    continue
+if {![runto_main]} {
+    return
 }
 
 # Test global operator
@@ -33,7 +33,7 @@ gdb_test "p a == 'a'" "= 12" "global operator overload"
 # Test ADL operator
 gdb_test "p bc == 1" "= 22" "ADL operator"
 gdb_test "p bc == 'a'" "= 23" "ADL operator overload"
-gdb_test "p B::BD::operator== (bc,'a')" "= 24" "Fully qualified explicit operator call"
+gdb_test "p B::BD::operator== (bc,'a')" "= 24" "fully qualified explicit operator call"
 
 # Test operator imported from anonymous namespace
 gdb_test "p d == 1" "= 33" "anonymous namespace operator"