diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-08-04 11:18:19 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-08-04 11:18:19 +0000 |
commit | 54acd405916a5b939e85f876691995004447a7b9 (patch) | |
tree | 3a8c7cf56432607388a39debe5925977ba3a3eb9 /clang/test/OpenMP/for_firstprivate_messages.cpp | |
parent | 323dc2d064b92a47b818857b82b7916e55ccf4bd (diff) | |
download | bcm5719-llvm-54acd405916a5b939e85f876691995004447a7b9.tar.gz bcm5719-llvm-54acd405916a5b939e85f876691995004447a7b9.zip |
[OPENMP 4.1] Support for 'linear' clause in loop directives.
OpenMP 4.1 allows 'linear' clause in loop directives. Patch adds support for it.
llvm-svn: 243969
Diffstat (limited to 'clang/test/OpenMP/for_firstprivate_messages.cpp')
-rw-r--r-- | clang/test/OpenMP/for_firstprivate_messages.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/test/OpenMP/for_firstprivate_messages.cpp b/clang/test/OpenMP/for_firstprivate_messages.cpp index 2ec81104e77..8caed3b722f 100644 --- a/clang/test/OpenMP/for_firstprivate_messages.cpp +++ b/clang/test/OpenMP/for_firstprivate_messages.cpp @@ -115,10 +115,6 @@ int foomain(int argc, char **argv) { for (int k = 0; k < argc; ++k) ++k; #pragma omp parallel -#pragma omp for linear(i) // expected-error {{unexpected OpenMP clause 'linear' in directive '#pragma omp for'}} - for (int k = 0; k < argc; ++k) - ++k; -#pragma omp parallel { int v = 0; int i; // expected-note {{variable with automatic storage duration is predetermined as private; perhaps you forget to enclose 'omp for' directive into a parallel or another task region?}} |