diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:44:14 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:44:14 +0000 |
| commit | 2b6b257f4e5503a7a2675bdb8735693db769f75c (patch) | |
| tree | e85e046ae7003fe3bcc8b5454cd0fa3f7407b470 /test/OpenMP/task_messages.cpp | |
| parent | b4348ed0b7e90c0831b925fbee00b5f179a99796 (diff) | |
Notes
Diffstat (limited to 'test/OpenMP/task_messages.cpp')
| -rw-r--r-- | test/OpenMP/task_messages.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/OpenMP/task_messages.cpp b/test/OpenMP/task_messages.cpp index 64bf8a40f025d..f42a37ae1daad 100644 --- a/test/OpenMP/task_messages.cpp +++ b/test/OpenMP/task_messages.cpp @@ -60,11 +60,10 @@ int foo() { // expected-error@+1 2 {{calling a private constructor of class 'S'}} #pragma omp parallel shared(a, b) ++a, ++b; -// expected-note@+1 3 {{defined as reduction}} +// expected-note@+1 2 {{defined as reduction}} #pragma omp parallel reduction(+ : r) -// expected-error@+1 {{argument of a reduction clause of a parallel construct must not appear in a firstprivate clause on a task construct}} +// expected-error@+1 2 {{argument of a reduction clause of a parallel construct must not appear in a firstprivate clause on a task construct}} #pragma omp task firstprivate(r) - // expected-error@+1 2 {{reduction variables may not be accessed in an explicit task}} ++r; // expected-note@+1 2 {{defined as reduction}} #pragma omp parallel reduction(+ : r) @@ -77,12 +76,11 @@ int foo() { // expected-error@+1 2 {{reduction variables may not be accessed in an explicit task}} ++r; #pragma omp parallel -// expected-note@+1 3 {{defined as reduction}} +// expected-note@+1 2 {{defined as reduction}} #pragma omp for reduction(+ : r) for (int i = 0; i < 10; ++i) -// expected-error@+1 {{argument of a reduction clause of a for construct must not appear in a firstprivate clause on a task construct}} +// expected-error@+1 2 {{argument of a reduction clause of a for construct must not appear in a firstprivate clause on a task construct}} #pragma omp task firstprivate(r) - // expected-error@+1 2 {{reduction variables may not be accessed in an explicit task}} ++r; #pragma omp parallel // expected-note@+1 2 {{defined as reduction}} |
