Commit e6c90dba by Frederik Harwath Committed by Frederik Harwath

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
parent a8654147
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> 2019-12-11 Hongtao Liu <hongtao.liu@intel.com>
* gcc.target/i386/pr92865-1.c: New test. * gcc.target/i386/pr92865-1.c: New test.
......
...@@ -9,7 +9,9 @@ check_clause_columns() { ...@@ -9,7 +9,9 @@ check_clause_columns() {
#pragma acc loop reduction(+:sum) #pragma acc loop reduction(+:sum)
for (i = 1; i <= 10; i++) 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++) for (j = 1; j <= 10; j++)
sum = 1; sum = 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment