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

login
register
mail settings
Submitter Mark Mitchell
Date Aug. 4, 2010, 7:02 p.m.
Message ID <20100804190250.724CB5664F4@henry1.codesourcery.com>
Download mbox | patch
Permalink /patch/60883/
State New
Headers show

Comments

Mark Mitchell - Aug. 4, 2010, 7:02 p.m.
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.

Patch

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>