diff options
Diffstat (limited to 'clang/test/OpenMP/for_misc_messages.c')
-rw-r--r-- | clang/test/OpenMP/for_misc_messages.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/OpenMP/for_misc_messages.c b/clang/test/OpenMP/for_misc_messages.c index c7635c270b7..0a7cdf8fc06 100644 --- a/clang/test/OpenMP/for_misc_messages.c +++ b/clang/test/OpenMP/for_misc_messages.c @@ -194,7 +194,7 @@ void test_collapse() { for (i = 0; i < 16; ++i) // expected-note@+1 {{variable with automatic storage duration is predetermined as private; perhaps you forget to enclose 'omp for' directive into a parallel or another task region?}} for (int j = 0; j < 16; ++j) -// expected-error@+2 {{private variable cannot be reduction}} +// expected-error@+2 {{reduction variable must be shared}} // expected-error@+1 {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}} #pragma omp for reduction(+ : i, j) for (int k = 0; k < 16; ++k) |