public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [testsuite, committed] Reinstate absolute line number in gcc.dg/cpp/19940712-1.c
@ 2017-05-24 14:16 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2017-05-24 14:16 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 531 bytes --]

Hi,

the line number refers to a line in a header file, so we want to keep 
that absolute.

[ The absolute line numbers that we want to replace are the ones that 
start failing once we add a line at the start of the file.

If an absolute line number refers to a header file, and we add a line at 
the start of the including file, the test won't start to fail. However, 
if we rewrite that line number to a relative one, and add a line at the 
start of the including file, the test will start to fail. ]

Committed.

Thanks,
- Tom


[-- Attachment #2: 0001-Reinstate-absolute-line-number-in-gcc.dg-cpp-19940712-1.c.patch --]
[-- Type: text/x-patch, Size: 810 bytes --]

Reinstate absolute line number in gcc.dg/cpp/19940712-1.c

2017-05-24  Tom de Vries  <tom@codesourcery.com>

	* gcc.dg/cpp/19940712-1.c: Reinstate absolute line number.

---
 gcc/testsuite/gcc.dg/cpp/19940712-1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/cpp/19940712-1.c b/gcc/testsuite/gcc.dg/cpp/19940712-1.c
index 7fd9b15..a79b2f5 100644
--- a/gcc/testsuite/gcc.dg/cpp/19940712-1.c
+++ b/gcc/testsuite/gcc.dg/cpp/19940712-1.c
@@ -2,7 +2,7 @@
 /* PR 4713 */
 
 /* dg.exp doesn't read the header files for magic comments. */
-/* { dg-error "unterminated comment" "" { target *-*-* } .-1 } */
+/* { dg-error "unterminated comment" "" { target *-*-* } 4 } */
 /* { dg-error "unterminated comment" "header error" { target *-*-* } 8 } */
 
 #include "19940712-1.h"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-05-24 14:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-24 14:16 [testsuite, committed] Reinstate absolute line number in gcc.dg/cpp/19940712-1.c Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).