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_misc_messages.c | |
| 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_misc_messages.c')
| -rw-r--r-- | clang/test/OpenMP/for_misc_messages.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/OpenMP/for_misc_messages.c b/clang/test/OpenMP/for_misc_messages.c index f5b87514947..fa42d074b22 100644 --- a/clang/test/OpenMP/for_misc_messages.c +++ b/clang/test/OpenMP/for_misc_messages.c @@ -62,9 +62,8 @@ void test_non_identifiers() { #pragma omp for; for (i = 0; i < 16; ++i) ; +// expected-warning@+2 {{extra tokens at the end of '#pragma omp for' are ignored}} #pragma omp parallel -// expected-error@+2 {{unexpected OpenMP clause 'linear' in directive '#pragma omp for'}} -// expected-warning@+1 {{extra tokens at the end of '#pragma omp for' are ignored}} #pragma omp for linear(x); for (i = 0; i < 16; ++i) ; |

