Use relative line number in unroll-5.c
authorTom de Vries <tom@codesourcery.com>
Tue, 26 Dec 2017 16:56:22 +0000 (16:56 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Tue, 26 Dec 2017 16:56:22 +0000 (16:56 +0000)
2017-12-26  Tom de Vries  <tom@codesourcery.com>

* c-c++-common/unroll-5.c: Use relative line number.

From-SVN: r256002

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/unroll-5.c

index 6e6f67ab71c3129d9c3f9700ff151cc2246eae94..e43e9ed1797d9267415d8f73db98c4235a5befc2 100644 (file)
@@ -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
index 754f3b18d5781efb7b25ed457577d18e4021db30..b72806621a34a227445298f423bd6f0dc01f08ff 100644 (file)
@@ -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);