diff options
Diffstat (limited to 'clang/test/OpenMP/task_messages.cpp')
-rw-r--r-- | clang/test/OpenMP/task_messages.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/clang/test/OpenMP/task_messages.cpp b/clang/test/OpenMP/task_messages.cpp index 832d8fa57d6..85072cb5b43 100644 --- a/clang/test/OpenMP/task_messages.cpp +++ b/clang/test/OpenMP/task_messages.cpp @@ -8,7 +8,7 @@ void foo() { #pragma omp task // expected-error {{unexpected OpenMP directive '#pragma omp task'}} class S { - S(const S &s) { a = s.a + 12; } // expected-note 10 {{implicitly declared private here}} + S(const S &s) { a = s.a + 12; } // expected-note 14 {{implicitly declared private here}} int a; public: @@ -40,21 +40,21 @@ int foo() { ++s1; #pragma omp task default(none) #pragma omp task default(shared) - ++a; + ++a; // expected-error 2 {{variable 'a' must have explicitly specified data sharing attributes}} #pragma omp task default(none) #pragma omp task // expected-error@+1 {{calling a private constructor of class 'S'}} - ++a; + ++a; // expected-error 2 {{variable 'a' must have explicitly specified data sharing attributes}} #pragma omp task #pragma omp task // expected-error@+1 {{calling a private constructor of class 'S'}} - ++a; + ++a; // expected-error {{calling a private constructor of class 'S'}} #pragma omp task default(shared) #pragma omp task ++a; #pragma omp task #pragma omp parallel - ++a; + ++a; // expected-error {{calling a private constructor of class 'S'}} // expected-error@+2 {{calling a private constructor of class 'S'}} #pragma omp task ++b; @@ -177,10 +177,10 @@ L2: #pragma omp task default(none) #pragma omp task default(shared) - ++a; + ++a; // expected-error {{variable 'a' must have explicitly specified data sharing attributes}} #pragma omp task default(none) #pragma omp task - ++a; + ++a; // expected-error {{variable 'a' must have explicitly specified data sharing attributes}} #pragma omp task default(shared) #pragma omp task ++a; @@ -194,21 +194,21 @@ L2: ++a, ++b; #pragma omp task default(none) #pragma omp task default(shared) - ++sa; + ++sa; // expected-error {{variable 'sa' must have explicitly specified data sharing attributes}} #pragma omp task default(none) #pragma omp task // expected-error@+1 {{calling a private constructor of class 'S'}} - ++sa; + ++sa; // expected-error {{variable 'sa' must have explicitly specified data sharing attributes}} #pragma omp task #pragma omp task // expected-error@+1 {{calling a private constructor of class 'S'}} - ++sa; + ++sa; // expected-error {{calling a private constructor of class 'S'}} #pragma omp task default(shared) #pragma omp task ++sa; #pragma omp task #pragma omp parallel - ++sa; + ++sa; // expected-error {{calling a private constructor of class 'S'}} // expected-error@+2 {{calling a private constructor of class 'S'}} #pragma omp task ++sb; |