This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Fix line number in miss-format-1.C testscase


This patch corrects the line number for the "not declared" error in
this test case for systems that don't have the declaration; it's
emitted on line 26, where vscanf is used.

Applied.

--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713

2010-08-04  Daniel Gutson  <dgutson@codesourcery.com>

	* g++.dg/warn/miss-format-1.C: Update line number.

Index: gcc/testsuite/g++.dg/warn/miss-format-1.C
===================================================================
--- gcc/testsuite/g++.dg/warn/miss-format-1.C	(revision 162871)
+++ gcc/testsuite/g++.dg/warn/miss-format-1.C	(working copy)
@@ -4,7 +4,7 @@
 /* { dg-options "-Wmissing-format-attribute" } */
 /* { dg-options "-Wmissing-format-attribute -Wno-abi" { target arm_eabi } } */
 /* VxWorks does not provide vscanf, either in kernel or RTP mode.  */
-/* { dg-error "not declared" "" { target *-*-solaris2.8 *-*-vxworks*  alpha*-dec-osf5* } 25 } */
+/* { dg-error "not declared" "" { target *-*-solaris2.8 *-*-vxworks*  alpha*-dec-osf5* } 26 } */
 
 #include <stdio.h>
 #include <stdarg.h>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]