From fa9d9dc25d68f8dfa11377f4f7caa8aa38643efd Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 26 Dec 2017 16:56:22 +0000 Subject: [PATCH] Use relative line number in unroll-5.c 2017-12-26 Tom de Vries * c-c++-common/unroll-5.c: Use relative line number. From-SVN: r256002 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/c-c++-common/unroll-5.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6e6f67ab71c..e43e9ed1797 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2017-12-26 Tom de Vries + + * c-c++-common/unroll-5.c: Use relative line number. + 2017-12-23 Jakub Jelinek PR c++/83553 diff --git a/gcc/testsuite/c-c++-common/unroll-5.c b/gcc/testsuite/c-c++-common/unroll-5.c index 754f3b18d57..b72806621a3 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); -- 2.30.2