comparison gcc/testsuite/c-c++-common/goacc/clause-locations.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 /* Verify that the location information for clauses is correct. */
2
3 void
4 check_clause_columns() {
5 int i, j, sum, diff;
6
7 #pragma acc parallel
8 {
9 #pragma acc loop reduction(+:sum)
10 for (i = 1; i <= 10; i++)
11 {
12 #pragma acc loop reduction(-:diff) reduction(-:sum)
13 /* { dg-warning "53: conflicting reduction operations for .sum." "" { target c } .-1 } */
14 /* { dg-warning "56: conflicting reduction operations for .sum." "" { target c++ } .-2 } */
15 for (j = 1; j <= 10; j++)
16 sum = 1;
17 }
18 }
19 }