From 7a976fe79dd5ac35cd36c1b576ab42f89bbdede6 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Sat, 6 May 2017 07:17:16 +0000 Subject: [PATCH] Add absolute line number comment in gcc.target/avr/progmem-error-1.cpp 2017-05-06 Tom de Vries * gcc.target/avr/progmem-error-1.cpp: Add abolute line number comment. From-SVN: r247717 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.target/avr/progmem-error-1.cpp | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7c594f7579f..ac6f2a4c7df 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2017-05-06 Tom de Vries + + * gcc.target/avr/progmem-error-1.cpp: Add abolute line number comment. + 2017-05-06 Tom de Vries PR testsuite/80557 diff --git a/gcc/testsuite/gcc.target/avr/progmem-error-1.cpp b/gcc/testsuite/gcc.target/avr/progmem-error-1.cpp index 934b93c15a0..b1676c11e00 100644 --- a/gcc/testsuite/gcc.target/avr/progmem-error-1.cpp +++ b/gcc/testsuite/gcc.target/avr/progmem-error-1.cpp @@ -2,4 +2,7 @@ #include "progmem.h" -char str[] PROGMEM = "Hallo"; /* { dg-error "must be const" "" { target avr-*-* } 1 } */ +char str[] PROGMEM = "Hallo"; +/* This is the line number of the PROGMEM definition in progmem.h. Keep it + absolute. */ +/* { dg-error "must be const" "" { target avr-*-* } 1 } */ -- 2.30.2