aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederik Harwath <frederik@codesourcery.com>2019-12-11 08:26:18 +0000
committerFrederik Harwath <frederik@gcc.gnu.org>2019-12-11 08:26:18 +0000
commite6c90dba73291435c244decb9a89c47019cc5a45 (patch)
treea9983875e6a14381cf056e6b51f5bbf2be92ef91
parenta8654147f153786a4339127228ac05ed550d0a2b (diff)
downloadgcc-e6c90dba73291435c244decb9a89c47019cc5a45.zip
gcc-e6c90dba73291435c244decb9a89c47019cc5a45.tar.gz
gcc-e6c90dba73291435c244decb9a89c47019cc5a45.tar.bz2
Fix PR92901: Change test expectation for C++ in OpenACC test clause-locations.c
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
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/c-c++-common/goacc/clause-locations.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 92eea2d..dc23f99 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/c-c++-common/goacc/clause-locations.c b/gcc/testsuite/c-c++-common/goacc/clause-locations.c
index 51184e3..913988d 100644
--- a/gcc/testsuite/c-c++-common/goacc/clause-locations.c
+++ b/gcc/testsuite/c-c++-common/goacc/clause-locations.c
@@ -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;
}