From d6cbe43f2f580d9aa992606e2588db06d023761e Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Thu, 7 Jun 2018 14:18:27 +0000 Subject: [PATCH] * g++.dg/cpp0x/range-for9.C: Adjust dg-error. From-SVN: r261278 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.dg/cpp0x/range-for9.C | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 440c8ce3e3d..691d233e3b7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2018-06-07 Marek Polacek + + * g++.dg/cpp0x/range-for9.C: Adjust dg-error. + 2018-06-07 Olga Makhotina * gcc.target/i386/funcspec-56.inc: Test arch=tremont. diff --git a/gcc/testsuite/g++.dg/cpp0x/range-for9.C b/gcc/testsuite/g++.dg/cpp0x/range-for9.C index 6a50ec36c14..eaa5b406880 100644 --- a/gcc/testsuite/g++.dg/cpp0x/range-for9.C +++ b/gcc/testsuite/g++.dg/cpp0x/range-for9.C @@ -5,6 +5,6 @@ void test() { int a[] = {0,1,2}; - for (int x : a) // { dg-error "range-based 'for'" } + for (int x : a) // { dg-error "range-based 'for'|forming reference" } ; } -- 2.30.2