aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/c-c++-common/unroll-5.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 6e6f67a..e43e9ed 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2017-12-26 Tom de Vries <tom@codesourcery.com>
+
+ * c-c++-common/unroll-5.c: Use relative line number.
+
2017-12-23 Jakub Jelinek <jakub@redhat.com>
PR c++/83553
diff --git a/gcc/testsuite/c-c++-common/unroll-5.c b/gcc/testsuite/c-c++-common/unroll-5.c
index 754f3b1..b728066 100644
--- a/gcc/testsuite/c-c++-common/unroll-5.c
+++ b/gcc/testsuite/c-c++-common/unroll-5.c
@@ -19,7 +19,7 @@ void test (void)
bar(i);
#pragma GCC unroll j /* { dg-error "requires an assignment-expression that evaluates to a non-negative integral constant less than" } */
- /* { dg-error "cannot appear in a constant-expression|is not usable in a constant expression" "" { target c++ } 21 } */
+ /* { dg-error "cannot appear in a constant-expression|is not usable in a constant expression" "" { target c++ } .-1 } */
for (unsigned long i = 1; i <= 8; ++i)
bar(i);