diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-07-17 12:19:31 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-07-17 12:19:31 +0000 |
commit | 7aea99a310b5beca93abc8aa788b074175a95bcb (patch) | |
tree | 8dde97a13e8d381258d3b6041c3e73482996eae9 /clang/test/OpenMP/task_messages.cpp | |
parent | 9a2350e45950e13d3d3a0ff318c10912ffef9d32 (diff) | |
download | bcm5719-llvm-7aea99a310b5beca93abc8aa788b074175a95bcb.tar.gz bcm5719-llvm-7aea99a310b5beca93abc8aa788b074175a95bcb.zip |
[OPENMP] Initial support for parsing and sema analysis of 'untied' clause.
llvm-svn: 213257
Diffstat (limited to 'clang/test/OpenMP/task_messages.cpp')
-rw-r--r-- | clang/test/OpenMP/task_messages.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/OpenMP/task_messages.cpp b/clang/test/OpenMP/task_messages.cpp index 3c8968299c4..7491c23b739 100644 --- a/clang/test/OpenMP/task_messages.cpp +++ b/clang/test/OpenMP/task_messages.cpp @@ -97,6 +97,9 @@ int foo() { // expected-error@+1 {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}} #pragma omp for reduction(+ : r) ++r; +// expected-error@+1 {{directive '#pragma omp task' cannot contain more than one 'untied' clause}} +#pragma omp task untied untied + ++r; return a + b; } @@ -256,6 +259,9 @@ L2: // expected-error@+1 {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}} #pragma omp for reduction(+ : r) ++r; +// expected-error@+1 {{directive '#pragma omp task' cannot contain more than one 'untied' clause}} +#pragma omp task untied untied + ++r; // expected-note@+2 {{in instantiation of function template specialization 'foo<int>' requested here}} // expected-note@+1 {{in instantiation of function template specialization 'foo<S>' requested here}} return foo<int>() + foo<S>(); |