diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2017-07-20 16:47:47 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-07-20 16:47:47 +0000 |
commit | 98456c30ff6baaef8e2fd0fdaaa7e5639b9607c6 (patch) | |
tree | 338de6cdd86c16bf4627f06fa5aaff9131cd4a3e /test/OpenMP/target_teams_distribute_parallel_for_simd_reduction_messages.cpp | |
parent | 7de981a54a206cc0af340771fe040be59af5e7d4 (diff) |
[OPENMP] Fix DSA processing for member declaration.
If the member declaration is captured in the OMPCapturedExprDecl, we may
loose data-sharing attribute info for this declaration. Patch fixes this
bug.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308629 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/OpenMP/target_teams_distribute_parallel_for_simd_reduction_messages.cpp')
-rw-r--r-- | test/OpenMP/target_teams_distribute_parallel_for_simd_reduction_messages.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/OpenMP/target_teams_distribute_parallel_for_simd_reduction_messages.cpp b/test/OpenMP/target_teams_distribute_parallel_for_simd_reduction_messages.cpp index cadccbf5cd..63744c77fb 100644 --- a/test/OpenMP/target_teams_distribute_parallel_for_simd_reduction_messages.cpp +++ b/test/OpenMP/target_teams_distribute_parallel_for_simd_reduction_messages.cpp @@ -19,9 +19,9 @@ public: S2() : a(0) {} S2(S2 &s2) : a(s2.a) {} static float S2s; // expected-note 2 {{static data member is predetermined as shared}} - static const float S2sc; + static const float S2sc; // expected-note 2 {{'S2sc' declared here}} }; -const float S2::S2sc = 0; // expected-note 2 {{'S2sc' defined here}} +const float S2::S2sc = 0; S2 b; // expected-note 3 {{'b' defined here}} const S2 ba[5]; // expected-note 2 {{'ba' defined here}} class S3 { |