summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/overload.cc
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2010-02-16 20:51:51 +0000
committerDaniel Jacobowitz <drow@false.org>2010-02-16 20:51:51 +0000
commit791dfb6488c972e2352ff5c3b4aa5659ce476136 (patch)
tree8df2dc07b5461cf5d0868edfe205d1538e5e695f /gdb/testsuite/gdb.cp/overload.cc
parent14d1346bd3b6fc51d1144d2060ee1e6822341c5d (diff)
downloadbinutils-gdb-791dfb6488c972e2352ff5c3b4aa5659ce476136.tar.gz
gdb/
* linespec.c (decode_line_1): Handle FILE:FUNCTION even if FUNCTION contains parentheses. Improve removal of a trailing single quote. gdb/testsuite/ * gdb.base/list.exp (test_list_filename_and_function): Add test with single quotes. * gdb.cp/overload.cc (intToChar): Rewrite onto one line for easy matching. * gdb.cp/overload.exp: Add tests with filename, function, and quotes. Add KFAIL'd tests for PR gdb/11289.
Diffstat (limited to 'gdb/testsuite/gdb.cp/overload.cc')
-rw-r--r--gdb/testsuite/gdb.cp/overload.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.cp/overload.cc b/gdb/testsuite/gdb.cp/overload.cc
index e643d4cdfde..78fae1455fc 100644
--- a/gdb/testsuite/gdb.cp/overload.cc
+++ b/gdb/testsuite/gdb.cp/overload.cc
@@ -56,10 +56,7 @@ namespace N {
int nsoverload (int x, int y) { return x + y; }
};
-int intToChar (char c)
-{
- return 297;
-}
+int intToChar (char c) { return 297; }
void marker1()
{}