Fix PR92901: Change test expectation for C++ in OpenACC test clause-locations.c
authorFrederik Harwath <frederik@codesourcery.com>
Wed, 11 Dec 2019 08:26:18 +0000 (08:26 +0000)
committerFrederik Harwath <frederik@gcc.gnu.org>
Wed, 11 Dec 2019 08:26:18 +0000 (08:26 +0000)
The columns of the clause locations that are reported for C and C++ are
different and hence we need separate test expectations for both languages.

2019-12-11  Frederik Harwath  <frederik@codesourcery.com>

PR other/92901
/gcc/testsuite/
* c-c++-common/clause-locations.c: Adjust test expectation for C++.

From-SVN: r279215

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/goacc/clause-locations.c

index 92eea2da375297e43d79cc0e559fc587f9c4a69d..dc23f997e0c3f07b8bf4f2acae6e7a374a8808f5 100644 (file)
@@ -1,3 +1,8 @@
+2019-12-11  Frederik Harwath  <frederik@codesourcery.com>
+
+       PR other/92901
+       * c-c++-common/clause-locations.c: Adjust test expectation for C++.
+
 2019-12-11  Hongtao Liu  <hongtao.liu@intel.com>
 
        * gcc.target/i386/pr92865-1.c: New test.
index 51184e3517b153f5d4cd4af87d201128e787b1b4..913988d9b5a5edc517fdfd072c35c0fcd5fb9b24 100644 (file)
@@ -9,7 +9,9 @@ check_clause_columns() {
     #pragma acc loop reduction(+:sum)
     for (i = 1; i <= 10; i++)
       {
-        #pragma acc loop reduction(-:diff) reduction(-:sum)  /* { dg-warning "53: conflicting reduction operations for .sum." } */
+        #pragma acc loop reduction(-:diff) reduction(-:sum)
+       /* { dg-warning "53: conflicting reduction operations for .sum." "" { target c } .-1 } */
+       /* { dg-warning "56: conflicting reduction operations for .sum." "" { target c++ } .-2 } */
        for (j = 1; j <= 10; j++)
          sum = 1;
       }