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

Submitted by Mark Mitchell on Aug. 4, 2010, 7:02 p.m.

Details

Message ID 20100804190250.724CB5664F4@henry1.codesourcery.com
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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>