progmem-error-1.cpp: Fix location of the expected diagnostic.

gcc/testsuite/
	* gcc.target/avr/progmem-error-1.cpp: Fix location of the
	expected diagnostic.

From-SVN: r277096
This commit is contained in:
Georg-Johann Lay 2019-10-17 10:21:08 +00:00 committed by Georg-Johann Lay
parent e9934c8c08
commit 7fa848b526
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2019-10-17 Georg-Johann Lay <avr@gjlay.de>
* gcc.target/avr/progmem-error-1.cpp: Fix location of the
expected diagnostic.
2019-10-17 Feng Xue <fxue@os.amperecomputing.com>
PR testsuite/92125

View File

@ -2,7 +2,4 @@
#include "progmem.h"
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 } */
char str[] PROGMEM = "Hallo"; /* { dg-error "must be const" "" { target avr-*-* } } */