diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-10-08 11:12:35 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-10-08 11:12:35 +0000 |
commit | bdef50e1adc316742bc1fd6d931c4841e9838b5c (patch) | |
tree | b5d2584c32f9b90dff7c55af25732e86af551de4 /clang/test/OpenMP/parallel_firstprivate_messages.cpp | |
parent | e7a5517a583529d2288c74b685323c05edb4947e (diff) | |
download | bcm5719-llvm-bdef50e1adc316742bc1fd6d931c4841e9838b5c.tar.gz bcm5719-llvm-bdef50e1adc316742bc1fd6d931c4841e9838b5c.zip |
Revert back r219295.
To fix issues with test OpenMP/parallel_firstprivate_codegen.cpp
llvm-svn: 219296
Diffstat (limited to 'clang/test/OpenMP/parallel_firstprivate_messages.cpp')
-rw-r--r-- | clang/test/OpenMP/parallel_firstprivate_messages.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/clang/test/OpenMP/parallel_firstprivate_messages.cpp b/clang/test/OpenMP/parallel_firstprivate_messages.cpp index 7d1e3593500..9df45c60e70 100644 --- a/clang/test/OpenMP/parallel_firstprivate_messages.cpp +++ b/clang/test/OpenMP/parallel_firstprivate_messages.cpp @@ -13,7 +13,7 @@ class S2 { mutable int a; public: S2():a(0) { } - S2(const S2 &s2):a(s2.a) { } + S2(S2 &s2):a(s2.a) { } static float S2s; static const float S2sc; }; @@ -24,22 +24,22 @@ class S3 { int a; public: S3():a(0) { } - S3(const S3 &s3):a(s3.a) { } + S3(S3 &s3):a(s3.a) { } }; const S3 c; const S3 ca[5]; extern const int f; -class S4 { +class S4 { // expected-note {{'S4' declared here}} int a; S4(); - S4(const S4 &s4); // expected-note {{implicitly declared private here}} + S4(const S4 &s4); public: S4(int v):a(v) { } }; -class S5 { +class S5 { // expected-note {{'S5' declared here}} int a; S5():a(0) {} - S5(const S5 &s5):a(s5.a) { } // expected-note {{implicitly declared private here}} + S5(const S5 &s5):a(s5.a) { } public: S5(int v):a(v) { } }; @@ -50,8 +50,8 @@ S3 h; int main(int argc, char **argv) { const int d = 5; const int da[5] = { 0 }; - S4 e(4); - S5 g(5); + S4 e(4); // expected-note {{'e' defined here}} + S5 g(5); // expected-note {{'g' defined here}} int i; int &j = i; // expected-note {{'j' defined here}} #pragma omp parallel firstprivate // expected-error {{expected '(' after 'firstprivate'}} @@ -69,7 +69,7 @@ int main(int argc, char **argv) { #pragma omp parallel firstprivate(da) #pragma omp parallel firstprivate(S2::S2s) #pragma omp parallel firstprivate(S2::S2sc) - #pragma omp parallel firstprivate(e, g) // expected-error {{calling a private constructor of class 'S4'}} expected-error {{calling a private constructor of class 'S5'}} + #pragma omp parallel firstprivate(e, g) // expected-error 2 {{firstprivate variable must have an accessible, unambiguous copy constructor}} #pragma omp parallel firstprivate(h) // expected-error {{threadprivate or thread local variable cannot be firstprivate}} #pragma omp parallel private(i), firstprivate(i) // expected-error {{private variable cannot be firstprivate}} expected-note{{defined as private}} foo(); |