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/single_firstprivate_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/single_firstprivate_messages.cpp')
-rw-r--r-- | clang/test/OpenMP/single_firstprivate_messages.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/OpenMP/single_firstprivate_messages.cpp b/clang/test/OpenMP/single_firstprivate_messages.cpp index 3fd00ae92b8..32de9fdc880 100644 --- a/clang/test/OpenMP/single_firstprivate_messages.cpp +++ b/clang/test/OpenMP/single_firstprivate_messages.cpp @@ -109,7 +109,7 @@ int foomain(int argc, char **argv) { { int v = 0; int i; // expected-note {{variable with automatic storage duration is predetermined as private; perhaps you forget to enclose 'omp single' directive into a parallel or another task region?}} -#pragma omp single firstprivate(i) // expected-error {{private variable cannot be firstprivate}} +#pragma omp single firstprivate(i) // expected-error {{firstprivate variable must be shared}} foo(); v += i; } @@ -232,7 +232,7 @@ int main(int argc, char **argv) { { int v = 0; int i; // expected-note {{variable with automatic storage duration is predetermined as private; perhaps you forget to enclose 'omp single' directive into a parallel or another task region?}} -#pragma omp single firstprivate(i) // expected-error {{private variable cannot be firstprivate}} +#pragma omp single firstprivate(i) // expected-error {{firstprivate variable must be shared}} foo(); v += i; } |