diff options
Diffstat (limited to 'test/OpenMP/distribute_firstprivate_messages.cpp')
-rw-r--r-- | test/OpenMP/distribute_firstprivate_messages.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/OpenMP/distribute_firstprivate_messages.cpp b/test/OpenMP/distribute_firstprivate_messages.cpp index 5d371abbfa8e..a59c9528090f 100644 --- a/test/OpenMP/distribute_firstprivate_messages.cpp +++ b/test/OpenMP/distribute_firstprivate_messages.cpp @@ -135,11 +135,11 @@ int main(int argc, char **argv) { for (i = 0; i < argc; ++i) foo(); // expected-error {{loop iteration variable in the associated loop of 'omp distribute' directive may not be firstprivate, predetermined as private}} #pragma omp target #pragma omp teams private(argc) // expected-note {{defined as private}} - #pragma omp distribute firstprivate(argc) // expected-error {{private variable in '#pragma omp teams' cannot be firstprivate in '#pragma omp distribute'}} + #pragma omp distribute firstprivate(argc) // expected-error {{firstprivate variable must be shared}} for (i = 0; i < argc; ++i) foo(); #pragma omp target #pragma omp teams reduction(+:argc) // expected-note {{defined as reduction}} - #pragma omp distribute firstprivate(argc) // expected-error {{reduction variable in '#pragma omp teams' cannot be firstprivate in '#pragma omp distribute'}} + #pragma omp distribute firstprivate(argc) // expected-error {{firstprivate variable must be shared}} for (i = 0; i < argc; ++i) foo(); #pragma omp target #pragma omp teams @@ -147,11 +147,11 @@ int main(int argc, char **argv) { for (i = 0; i < argc; ++i) foo(); #pragma omp target #pragma omp teams - #pragma omp distribute lastprivate(argc), firstprivate(argc) // expected-error {{lastprivate variable cannot be firstprivate in '#pragma omp distribute'}} expected-note{{defined as lastprivate}} + #pragma omp distribute lastprivate(argc), firstprivate(argc) // expected-error {{lastprivate variable cannot be firstprivate}} expected-note{{defined as lastprivate}} for (i = 0; i < argc; ++i) foo(); #pragma omp target #pragma omp teams -#pragma omp distribute firstprivate(argc), lastprivate(argc) // expected-error {{lastprivate variable cannot be firstprivate in '#pragma omp distribute'}} expected-note{{defined as firstprivate}} +#pragma omp distribute firstprivate(argc), lastprivate(argc) // expected-error {{firstprivate variable cannot be lastprivate}} expected-note{{defined as firstprivate}} for (i = 0; i < argc; ++i) foo(); return 0; } |