diff mbox

[testsuite,committed] Add absolute line number comment in gcc.target/avr/progmem-error-1.cpp

Message ID 0887510a-458e-7ffd-3b23-179a257d9c3d@mentor.com
State New
Headers show

Commit Message

Tom de Vries May 6, 2017, 7:55 a.m. UTC
Hi,

this patchs adds an absolute line number comment in 
gcc.target/avr/progmem-error-1.cpp.

Committed as obvious.

Thanks,
- Tom
diff mbox

Patch

Add absolute line number comment in gcc.target/avr/progmem-error-1.cpp

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

	* gcc.target/avr/progmem-error-1.cpp: Add abolute line number comment.

---
 gcc/testsuite/gcc.target/avr/progmem-error-1.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/avr/progmem-error-1.cpp b/gcc/testsuite/gcc.target/avr/progmem-error-1.cpp
index 934b93c..b1676c1 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 } */