summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/taskloop_firstprivate_messages.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2017-09-21 14:06:59 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2017-09-21 14:06:59 +0000
commit0dce2ea75873f3a1ab6e0a42561b63887231be41 (patch)
tree9cf07d142c3c329e5f1294e30eac79eac7f4af32 /clang/test/OpenMP/taskloop_firstprivate_messages.cpp
parentede43b71f802ad65c030557876939bcc1f7636b8 (diff)
downloadbcm5719-llvm-0dce2ea75873f3a1ab6e0a42561b63887231be41.tar.gz
bcm5719-llvm-0dce2ea75873f3a1ab6e0a42561b63887231be41.zip
[OPENMP] Use canonical declarations for redeclarations checks.
If the captured variable has some redeclarations we may run into the situation where the redeclaration is used instead of the canonical declaration and we may consider this variable as one not captured before. llvm-svn: 313880
Diffstat (limited to 'clang/test/OpenMP/taskloop_firstprivate_messages.cpp')
-rw-r--r--clang/test/OpenMP/taskloop_firstprivate_messages.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/OpenMP/taskloop_firstprivate_messages.cpp b/clang/test/OpenMP/taskloop_firstprivate_messages.cpp
index fe22311f650..e63d6a678b8 100644
--- a/clang/test/OpenMP/taskloop_firstprivate_messages.cpp
+++ b/clang/test/OpenMP/taskloop_firstprivate_messages.cpp
@@ -295,9 +295,9 @@ int main(int argc, char **argv) {
#pragma omp taskloop firstprivate(i) // expected-note {{defined as firstprivate}}
for (i = 0; i < argc; ++i) // expected-error {{loop iteration variable in the associated loop of 'omp taskloop' directive may not be firstprivate, predetermined as private}}
foo();
-#pragma omp parallel reduction(+ : i) // expected-note 4 {{defined as reduction}}
+#pragma omp parallel reduction(+ : i) // expected-note 2 {{defined as reduction}}
#pragma omp taskloop firstprivate(i) //expected-error {{argument of a reduction clause of a parallel construct must not appear in a firstprivate clause on a task construct}}
- for (i = 0; i < argc; ++i) // expected-error 3 {{reduction variables may not be accessed in an explicit task}}
+ for (i = 0; i < argc; ++i) // expected-error {{reduction variables may not be accessed in an explicit task}}
foo();
#pragma omp parallel
#pragma omp taskloop firstprivate(B::x) // expected-error {{threadprivate or thread local variable cannot be firstprivate}}
OpenPOWER on IntegriCloud