diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-01-16 07:11:33 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-01-16 07:11:33 +0000 |
commit | 2fcd952ceadde6f14796d98b85ba7b6317a44baa (patch) | |
tree | 58a96e600695b935b64cc0c8bb8354378759708f /test/OpenMP/parallel_private_messages.cpp | |
parent | 1d11866537a9bf722c9c5b516151c23434242e24 (diff) |
[OPENMP] Fixed data-sharing attributes processing for variables with global
storage.
This fix allows to use non-constant global variables, static local variables and static data
members in data-sharing attribute clauses in parallel and task regions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@226250 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/OpenMP/parallel_private_messages.cpp')
-rw-r--r-- | test/OpenMP/parallel_private_messages.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/OpenMP/parallel_private_messages.cpp b/test/OpenMP/parallel_private_messages.cpp index 14c5cbdb8a..74949ba343 100644 --- a/test/OpenMP/parallel_private_messages.cpp +++ b/test/OpenMP/parallel_private_messages.cpp @@ -13,7 +13,7 @@ class S2 { mutable int a; public: S2():a(0) { } - static float S2s; // expected-note {{static data member is predetermined as shared}} + static float S2s; }; const S2 b; const S2 ba[5]; @@ -61,7 +61,7 @@ int main(int argc, char **argv) { #pragma omp parallel private(ba) #pragma omp parallel private(ca) // expected-error {{shared variable cannot be private}} #pragma omp parallel private(da) // expected-error {{shared variable cannot be private}} - #pragma omp parallel private(S2::S2s) // expected-error {{shared variable cannot be private}} + #pragma omp parallel private(S2::S2s) #pragma omp parallel private(e, g) // expected-error {{calling a private constructor of class 'S4'}} expected-error {{calling a private constructor of class 'S5'}} #pragma omp parallel private(threadvar) // expected-error {{threadprivate or thread local variable cannot be private}} #pragma omp parallel shared(i), private(i) // expected-error {{shared variable cannot be private}} expected-note {{defined as shared}} |