This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed,testsuite] Fix dg-error for a darwin testcase
- From: FX <fxcoudert at gmail dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: Iain Sandoe <iain at codesourcery dot com>, Mike Stump <mikestump at comcast dot net>
- Date: Sat, 15 Nov 2014 16:27:33 +0100
- Subject: [committed,testsuite] Fix dg-error for a darwin testcase
- Authentication-results: sourceware.org; auth=none
Committed as trivial, as the error wording changed due to more precise diagnostics: it now says âCFStringRef {aka const struct __CFString *}â instead of just âCFStringRefâ
FX
2014-10-19 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
* gcc.dg/darwin-cfstring-format-1.c: Adjust dg-error.
Index: gcc.dg/darwin-cfstring-format-1.c
===================================================================
--- gcc.dg/darwin-cfstring-format-1.c (revision 217599)
+++ gcc.dg/darwin-cfstring-format-1.c (working copy)
@@ -18,7 +18,7 @@ int s2 (int a, CFStringRef fmt, ... ) __
int s2a (int a, CFStringRef fmt, ... ) __attribute__((format(CFString, 2, 2))) ; /* { dg-error "format string argument follows the args to be formatted" } */
int s3 (const char *fmt, ... ) __attribute__((format(__CFString__, 1, 2))) ; /* { dg-error "format argument should be a .CFString. reference but a string was found" } */
-int s4 (CFStringRef fmt, ... ) __attribute__((format(printf, 1, 2))) ; /* { dg-error "found a .CFStringRef. but the format argument should be a string" } */
+int s4 (CFStringRef fmt, ... ) __attribute__((format(printf, 1, 2))) ; /* { dg-error "found a .CFStringRef.* but the format argument should be a string" } */
char *s5 (char dum, char *fmt1, ... ) __attribute__((format_arg(2))) ; /* OK */
CFStringRef s6 (CFStringRef dum, CFStringRef fmt1, ... ) __attribute__((format_arg(2))) ; /* OK */