Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/c-c++-common/goacc/clause-locations.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 1830386684a0 |
children |
rev | line source |
---|---|
145 | 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 } |