diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2015-05-21 09:47:46 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2015-05-21 09:47:46 +0000 |
commit | 5129d3a4f58c7514a31d49da5c7c70c17aaa9a8f (patch) | |
tree | 949ba9c1c89f75d50cc59e708639b8a4db3e0a74 /clang/test/OpenMP/for_private_messages.cpp | |
parent | 2db1a03b07ce4d22ad32ebbecdc2099b0e67524e (diff) | |
download | bcm5719-llvm-5129d3a4f58c7514a31d49da5c7c70c17aaa9a8f.tar.gz bcm5719-llvm-5129d3a4f58c7514a31d49da5c7c70c17aaa9a8f.zip |
[OPENMP] Fixed codegen for parameters privatization.
For parameters we shall take a derived type of parameters, not the original one.
llvm-svn: 237882
Diffstat (limited to 'clang/test/OpenMP/for_private_messages.cpp')
-rw-r--r-- | clang/test/OpenMP/for_private_messages.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/OpenMP/for_private_messages.cpp b/clang/test/OpenMP/for_private_messages.cpp index 3ea0e5460f2..225a1beb99e 100644 --- a/clang/test/OpenMP/for_private_messages.cpp +++ b/clang/test/OpenMP/for_private_messages.cpp @@ -26,7 +26,7 @@ public: const S3 ca[5]; class S4 { int a; - S4(); // expected-note 2 {{implicitly declared private here}} + S4(); // expected-note {{implicitly declared private here}} public: S4(int v) : a(v) {} @@ -110,7 +110,7 @@ int foomain(I argc, C **argv) { void bar(S4 a[2]) { #pragma omp parallel -#pragma omp for private(a) // expected-error {{calling a private constructor of class 'S4'}} +#pragma omp for private(a) for (int i = 0; i < 2; ++i) foo(); } |