summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/task_if_messages.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2015-09-15 17:23:56 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2015-09-15 17:23:56 +0000
commitecb156aba2cecd53f5153ca2f36d22e36b6f836d (patch)
treec426b792e92c7d7274668455ead825bd41b8e214 /clang/test/OpenMP/task_if_messages.cpp
parent454faa84e2236408eed8307151dac17ed80e9554 (diff)
downloadbcm5719-llvm-ecb156aba2cecd53f5153ca2f36d22e36b6f836d.tar.gz
bcm5719-llvm-ecb156aba2cecd53f5153ca2f36d22e36b6f836d.zip
[OPENMP] Emit an additional note during analysis of 'if' clause.
Patch adds emission of additional note for 'if' clauses with name modifiers in case if 'if' clause without name modified was specified or 'if' clause with the same name modifier was specified. llvm-svn: 247706
Diffstat (limited to 'clang/test/OpenMP/task_if_messages.cpp')
-rw-r--r--clang/test/OpenMP/task_if_messages.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/OpenMP/task_if_messages.cpp b/clang/test/OpenMP/task_if_messages.cpp
index 029e4e1f1b7..f3f56d51673 100644
--- a/clang/test/OpenMP/task_if_messages.cpp
+++ b/clang/test/OpenMP/task_if_messages.cpp
@@ -27,7 +27,7 @@ int tmain(T argc, S **argv) {
#pragma omp task if(task : argc)
#pragma omp task if(task : argc) if (for:argc) // expected-error {{directive name modifier 'for' is not allowed for '#pragma omp task'}}
#pragma omp task if(task : argc) if (task:argc) // expected-error {{directive '#pragma omp task' cannot contain more than one 'if' clause with 'task' name modifier}}
- #pragma omp task if(task : argc) if (argc) // expected-error {{no more 'if' clause is allowed}}
+ #pragma omp task if(task : argc) if (argc) // expected-error {{no more 'if' clause is allowed}} expected-note {{previous clause with directive name modifier specified here}}
foo();
return 0;
@@ -51,7 +51,7 @@ int main(int argc, char **argv) {
#pragma omp task if(task : argc)
#pragma omp task if(task : argc) if (for:argc) // expected-error {{directive name modifier 'for' is not allowed for '#pragma omp task'}}
#pragma omp task if(task : argc) if (task:argc) // expected-error {{directive '#pragma omp task' cannot contain more than one 'if' clause with 'task' name modifier}}
- #pragma omp task if(task : argc) if (argc) // expected-error {{no more 'if' clause is allowed}}
+ #pragma omp task if(task : argc) if (argc) // expected-error {{no more 'if' clause is allowed}} expected-note {{previous clause with directive name modifier specified here}}
foo();
return tmain(argc, argv);
OpenPOWER on IntegriCloud