diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-12-10 08:20:58 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-12-10 08:20:58 +0000 |
commit | dffa93a620bcaf9dcb49352b26db3e1bd6546c4c (patch) | |
tree | aa38ca1ca4522498fbbb12d596d36b4cc4b56d86 /clang/test/OpenMP/task_private_messages.cpp | |
parent | 6bfade1b811a227f4c6cc159f54d4ace008367b6 (diff) | |
download | bcm5719-llvm-dffa93a620bcaf9dcb49352b26db3e1bd6546c4c.tar.gz bcm5719-llvm-dffa93a620bcaf9dcb49352b26db3e1bd6546c4c.zip |
[OPENMP] Fixed processing of predetermined data-sharing attributes
Predetermined data-shared attributes for local variables are now considered as implicit. Also, patch prohibits changin of DSA for static memebers of classes.
llvm-svn: 255229
Diffstat (limited to 'clang/test/OpenMP/task_private_messages.cpp')
-rw-r--r-- | clang/test/OpenMP/task_private_messages.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/OpenMP/task_private_messages.cpp b/clang/test/OpenMP/task_private_messages.cpp index a1af7e96438..6bce1352b13 100644 --- a/clang/test/OpenMP/task_private_messages.cpp +++ b/clang/test/OpenMP/task_private_messages.cpp @@ -14,7 +14,7 @@ class S2 { public: S2() : a(0) {} - static float S2s; + static float S2s; // expected-note {{static data member is predetermined as shared}} }; const S2 b; const S2 ba[5]; @@ -78,7 +78,7 @@ int main(int argc, char **argv) { #pragma omp task private(ba) #pragma omp task private(ca) // expected-error {{shared variable cannot be private}} #pragma omp task private(da) // expected-error {{shared variable cannot be private}} -#pragma omp task private(S2::S2s) +#pragma omp task private(S2::S2s) // expected-error {{shared variable cannot be private}} #pragma omp task private(e, g) // expected-error {{calling a private constructor of class 'S4'}} expected-error {{calling a private constructor of class 'S5'}} #pragma omp task private(threadvar, B::x) // expected-error 2 {{threadprivate or thread local variable cannot be private}} #pragma omp task shared(i), private(i) // expected-error {{shared variable cannot be private}} expected-note {{defined as shared}} |