This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 10/16] 'callfuncs' test case: Fix typo in prototyped version
- From: Andreas Arnez <arnez at linux dot vnet dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 29 Oct 2014 17:00:25 +0100
- Subject: [PATCH 10/16] 'callfuncs' test case: Fix typo in prototyped version
- Authentication-results: sourceware.org; auth=none
- References: <1414597859-12523-1-git-send-email-arnez at linux dot vnet dot ibm dot com>
Fix a small typo in callfuncs.c which leads to a compile error when
the PROTOTYPES macro is defined.
gdb/testsuite/ChangeLog:
* gdb.base/callfuncs.c (t_structs_ldc): Renamed from t_structs_fc
in conditional code guarded by #ifdef PROTOTYPES.
---
gdb/testsuite/gdb.base/callfuncs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.base/callfuncs.c b/gdb/testsuite/gdb.base/callfuncs.c
index 24fd33c..8548757 100644
--- a/gdb/testsuite/gdb.base/callfuncs.c
+++ b/gdb/testsuite/gdb.base/callfuncs.c
@@ -216,7 +216,7 @@ char *t_structs_a (struct struct1 tstruct)
#ifdef TEST_COMPLEX
float _Complex t_structs_fc (struct struct1 tstruct) { return tstruct.fc;}
double _Complex t_structs_dc (struct struct1 tstruct) { return tstruct.dc;}
-long double _Complex t_structs_fc (struct struct1 tstruct) { return tstruct.ldc;}
+long double _Complex t_structs_ldc (struct struct1 tstruct) { return tstruct.ldc;}
#endif
#else
char t_structs_c (tstruct) struct struct1 tstruct; { return (tstruct.c); }
--
1.8.4.2