summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/for_loop_messages.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2014-07-07 13:01:15 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2014-07-07 13:01:15 +0000
commit4acb859fbdad4b5bc9208d3bfaea6847a682e26f (patch)
tree9e7b794b1f6f141bc4141dbb84cc0d9a1a9e830a /clang/test/OpenMP/for_loop_messages.cpp
parent8a8b850c98f392ec21d5b1e99338e0145d57fe69 (diff)
downloadbcm5719-llvm-4acb859fbdad4b5bc9208d3bfaea6847a682e26f.tar.gz
bcm5719-llvm-4acb859fbdad4b5bc9208d3bfaea6847a682e26f.zip
[OPENMP] Added initial support for 'omp parallel for'.
llvm-svn: 212453
Diffstat (limited to 'clang/test/OpenMP/for_loop_messages.cpp')
-rw-r--r--clang/test/OpenMP/for_loop_messages.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/OpenMP/for_loop_messages.cpp b/clang/test/OpenMP/for_loop_messages.cpp
index 972fe4febf5..deed0ec31b8 100644
--- a/clang/test/OpenMP/for_loop_messages.cpp
+++ b/clang/test/OpenMP/for_loop_messages.cpp
@@ -279,7 +279,7 @@ int test_iteration_spaces() {
#pragma omp parallel
// expected-note@+2 {{defined as firstprivate}}
-// expected-error@+2 {{loop iteration variable may not be firstprivate}}
+// expected-error@+2 {{loop iteration variable in the associated loop of 'omp for' directive may not be firstprivate, predetermined as private}}
#pragma omp for firstprivate(ii)
for (ii = 0; ii < 10; ii++)
c[ii] = a[ii];
@@ -287,7 +287,7 @@ int test_iteration_spaces() {
#pragma omp parallel
// expected-error@+3 {{unexpected OpenMP clause 'linear' in directive '#pragma omp for'}}
// expected-note@+2 {{defined as linear}}
-// expected-error@+2 {{loop iteration variable may not be linear}}
+// expected-error@+2 {{loop iteration variable in the associated loop of 'omp for' directive may not be linear, predetermined as private}}
#pragma omp for linear(ii)
for (ii = 0; ii < 10; ii++)
c[ii] = a[ii];
@@ -304,7 +304,7 @@ int test_iteration_spaces() {
#pragma omp parallel
{
-// expected-error@+2 {{loop iteration variable may not be threadprivate or thread local}}
+// expected-error@+2 {{loop iteration variable in the associated loop of 'omp for' directive may not be threadprivate or thread local, predetermined as private}}
#pragma omp for
for (sii = 0; sii < 10; sii += 1)
c[sii] = a[sii];
OpenPOWER on IntegriCloud