summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/parallel_sections_reduction_messages.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2016-01-26 12:20:39 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2016-01-26 12:20:39 +0000
commit1189bd020570f465c02176a609eb5109ab2fe0f8 (patch)
tree31de8e7524e874b0b40d586a4c7cc96c9a436500 /clang/test/OpenMP/parallel_sections_reduction_messages.cpp
parent6f50c29ab2ce332c3dadad1d7b3dc8878ba81485 (diff)
downloadbcm5719-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_sections_reduction_messages.cpp')
-rw-r--r--clang/test/OpenMP/parallel_sections_reduction_messages.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/OpenMP/parallel_sections_reduction_messages.cpp b/clang/test/OpenMP/parallel_sections_reduction_messages.cpp
index eff1849d713..50f46254d6c 100644
--- a/clang/test/OpenMP/parallel_sections_reduction_messages.cpp
+++ b/clang/test/OpenMP/parallel_sections_reduction_messages.cpp
@@ -145,15 +145,15 @@ T tmain(T argc) {
{
foo();
}
-#pragma omp parallel sections reduction(+ : ba) // expected-error {{a reduction list item with array type 'const S2 [5]'}}
+#pragma omp parallel sections reduction(+ : ba) // expected-error {{const-qualified list item cannot be reduction}}
{
foo();
}
-#pragma omp parallel sections reduction(* : ca) // expected-error {{a reduction list item with array type 'const S3 [5]'}}
+#pragma omp parallel sections reduction(* : ca) // expected-error {{const-qualified list item cannot be reduction}}
{
foo();
}
-#pragma omp parallel sections 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 sections reduction(- : da) // expected-error {{const-qualified list item cannot be reduction}} expected-error {{const-qualified list item cannot be reduction}}
{
foo();
}
@@ -298,15 +298,15 @@ int main(int argc, char **argv) {
{
foo();
}
-#pragma omp parallel sections reduction(+ : ba) // expected-error {{a reduction list item with array type 'const S2 [5]'}}
+#pragma omp parallel sections reduction(+ : ba) // expected-error {{const-qualified list item cannot be reduction}}
{
foo();
}
-#pragma omp parallel sections reduction(* : ca) // expected-error {{a reduction list item with array type 'const S3 [5]'}}
+#pragma omp parallel sections reduction(* : ca) // expected-error {{const-qualified list item cannot be reduction}}
{
foo();
}
-#pragma omp parallel sections reduction(- : da) // expected-error {{a reduction list item with array type 'const int [5]'}}
+#pragma omp parallel sections reduction(- : da) // expected-error {{const-qualified list item cannot be reduction}}
{
foo();
}
OpenPOWER on IntegriCloud