commit | 4eea8c6b824402f07a630f596fd3b0b6a4ec5c4f | [log] [tgz] |
---|---|---|
author | Kelvin Li <kkwli0@gmail.com> | Tue Sep 15 18:56:58 2015 +0000 |
committer | Kelvin Li <kkwli0@gmail.com> | Tue Sep 15 18:56:58 2015 +0000 |
tree | 6d9a11ddfd00c02c5d6ef669cac13796f2161bca | |
parent | ec4ad5ac9bfec9fcec7d7932a089411fb3245902 [diff] [blame] |
Allow static local variables specified on data-sharing attribute clauses. http://reviews.llvm.org/D11619 llvm-svn: 247715
diff --git a/clang/test/OpenMP/parallel_sections_firstprivate_messages.cpp b/clang/test/OpenMP/parallel_sections_firstprivate_messages.cpp index 3982d73..b733aab 100644 --- a/clang/test/OpenMP/parallel_sections_firstprivate_messages.cpp +++ b/clang/test/OpenMP/parallel_sections_firstprivate_messages.cpp
@@ -298,6 +298,11 @@ { 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}} }