diff options
author | Kelvin Li <kkwli0@gmail.com> | 2015-09-15 18:56:58 +0000 |
---|---|---|
committer | Kelvin Li <kkwli0@gmail.com> | 2015-09-15 18:56:58 +0000 |
commit | 4f0ecf9232938ee586530a39606a66f4cbac8fa3 (patch) | |
tree | 71d9639abe45fd380536eb07a32fb27a209a5511 /test/OpenMP/parallel_sections_firstprivate_messages.cpp | |
parent | d3e4ec2683565b6d925c73c2e3c6828a6cd4b3bc (diff) |
Allow static local variables specified on data-sharing attribute clauses.
http://reviews.llvm.org/D11619
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247715 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/OpenMP/parallel_sections_firstprivate_messages.cpp')
-rw-r--r-- | test/OpenMP/parallel_sections_firstprivate_messages.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/OpenMP/parallel_sections_firstprivate_messages.cpp b/test/OpenMP/parallel_sections_firstprivate_messages.cpp index 3982d73ad7..b733aabb7f 100644 --- a/test/OpenMP/parallel_sections_firstprivate_messages.cpp +++ b/test/OpenMP/parallel_sections_firstprivate_messages.cpp @@ -298,6 +298,11 @@ int main(int argc, char **argv) { { foo(); } + static int r; +#pragma omp parallel sections firstprivate(r) // OK + { + foo(); + } return foomain<S4, S5>(argc, argv); // expected-note {{in instantiation of function template specialization 'foomain<S4, S5>' requested here}} } |