diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2016-01-26 12:20:39 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2016-01-26 12:20:39 +0000 |
commit | 1189bd020570f465c02176a609eb5109ab2fe0f8 (patch) | |
tree | 31de8e7524e874b0b40d586a4c7cc96c9a436500 /clang/test/OpenMP/parallel_reduction_messages.cpp | |
parent | 6f50c29ab2ce332c3dadad1d7b3dc8878ba81485 (diff) | |
download | bcm5719-llvm-1189bd020570f465c02176a609eb5109ab2fe0f8.tar.gz bcm5719-llvm-1189bd020570f465c02176a609eb5109ab2fe0f8.zip |
[OPENMP 4.5] Allow arrays in 'reduction' clause.
OpenMP 4.5, alogn with array sections, allows to use variables of array type in reductions.
llvm-svn: 258804
Diffstat (limited to 'clang/test/OpenMP/parallel_reduction_messages.cpp')
-rw-r--r-- | clang/test/OpenMP/parallel_reduction_messages.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/OpenMP/parallel_reduction_messages.cpp b/clang/test/OpenMP/parallel_reduction_messages.cpp index b29f7c98a57..4365a0f4382 100644 --- a/clang/test/OpenMP/parallel_reduction_messages.cpp +++ b/clang/test/OpenMP/parallel_reduction_messages.cpp @@ -113,11 +113,11 @@ T tmain(T argc) { foo(); #pragma omp parallel reduction(max : h.b) // expected-error {{expected variable name, array element or array section}} foo(); -#pragma omp parallel reduction(+ : ba) // expected-error {{a reduction list item with array type 'const S2 [5]'}} +#pragma omp parallel reduction(+ : ba) // expected-error {{const-qualified list item cannot be reduction}} foo(); -#pragma omp parallel reduction(* : ca) // expected-error {{a reduction list item with array type 'const S3 [5]'}} +#pragma omp parallel reduction(* : ca) // expected-error {{const-qualified list item cannot be reduction}} foo(); -#pragma omp parallel reduction(- : da) // expected-error {{a reduction list item with array type 'const int [5]'}} expected-error {{a reduction list item with array type 'const float [5]'}} +#pragma omp parallel reduction(- : da) // expected-error {{const-qualified list item cannot be reduction}} expected-error {{const-qualified list item cannot be reduction}} foo(); #pragma omp parallel reduction(^ : fl) // expected-error {{invalid operands to binary expression ('float' and 'float')}} foo(); @@ -208,11 +208,11 @@ int main(int argc, char **argv) { foo(); #pragma omp parallel reduction(max : h.b) // expected-error {{expected variable name, array element or array section}} foo(); -#pragma omp parallel reduction(+ : ba) // expected-error {{a reduction list item with array type 'const S2 [5]'}} +#pragma omp parallel reduction(+ : ba) // expected-error {{const-qualified list item cannot be reduction}} foo(); -#pragma omp parallel reduction(* : ca) // expected-error {{a reduction list item with array type 'const S3 [5]'}} +#pragma omp parallel reduction(* : ca) // expected-error {{const-qualified list item cannot be reduction}} foo(); -#pragma omp parallel reduction(- : da) // expected-error {{a reduction list item with array type 'const int [5]'}} +#pragma omp parallel reduction(- : da) // expected-error {{const-qualified list item cannot be reduction}} foo(); #pragma omp parallel reduction(^ : fl) // expected-error {{invalid operands to binary expression ('float' and 'float')}} foo(); |