diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-12-25 13:38:08 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-12-25 13:38:08 +0000 |
commit | e648e80fbf8537dc43df1ca7cadcd9ce77beb5ac (patch) | |
tree | 52350445d73b1df2bf11303aea0b8b91c44360ea /clang/test/OpenMP/taskloop_loop_messages.cpp | |
parent | 57830b60dc9dc3bf8d42d2a21ea501834838edeb (diff) | |
download | bcm5719-llvm-e648e80fbf8537dc43df1ca7cadcd9ce77beb5ac.tar.gz bcm5719-llvm-e648e80fbf8537dc43df1ca7cadcd9ce77beb5ac.zip |
[OPENMP] Do not allow to use threadprivate or thread local variables as loop iteration variables.
According to OpenMP the loop iteration variable may not appear in a threadprivate directive.
llvm-svn: 256417
Diffstat (limited to 'clang/test/OpenMP/taskloop_loop_messages.cpp')
-rw-r--r-- | clang/test/OpenMP/taskloop_loop_messages.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/OpenMP/taskloop_loop_messages.cpp b/clang/test/OpenMP/taskloop_loop_messages.cpp index 3ff8005f7fe..02518e572f3 100644 --- a/clang/test/OpenMP/taskloop_loop_messages.cpp +++ b/clang/test/OpenMP/taskloop_loop_messages.cpp @@ -10,6 +10,7 @@ public: }; static int sii; +// expected-note@+1 {{defined as threadprivate or thread local}} #pragma omp threadprivate(sii) static int globalii; @@ -310,6 +311,7 @@ int test_iteration_spaces() { #pragma omp parallel { +// expected-error@+2 {{loop iteration variable in the associated loop of 'omp taskloop' directive may not be threadprivate or thread local, predetermined as private}} #pragma omp taskloop for (sii = 0; sii < 10; sii += 1) c[sii] = a[sii]; |