summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/target_firstprivate_messages.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2018-02-27 21:31:11 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2018-02-27 21:31:11 +0000
commit95c23e72da98ecb84c562ca0fb8e23f7c6ceefa1 (patch)
treea66894cf088b38210078753a70ac4a040e51879c /clang/test/OpenMP/target_firstprivate_messages.cpp
parent0594aee52fad70d2a0b44b321579b857b8cf9244 (diff)
downloadbcm5719-llvm-95c23e72da98ecb84c562ca0fb8e23f7c6ceefa1.tar.gz
bcm5719-llvm-95c23e72da98ecb84c562ca0fb8e23f7c6ceefa1.zip
[OPENMP] Emit warning for non-trivial types in map clauses.
If the mapped type is non-trivial, the warning message is emitted for better user experience. llvm-svn: 326251
Diffstat (limited to 'clang/test/OpenMP/target_firstprivate_messages.cpp')
-rw-r--r--clang/test/OpenMP/target_firstprivate_messages.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/OpenMP/target_firstprivate_messages.cpp b/clang/test/OpenMP/target_firstprivate_messages.cpp
index b7ad359ccbe..4f82c96e564 100644
--- a/clang/test/OpenMP/target_firstprivate_messages.cpp
+++ b/clang/test/OpenMP/target_firstprivate_messages.cpp
@@ -38,7 +38,7 @@ public:
S5(int v) : a(v) {}
S5 &operator=(S5 &s) {
#pragma omp target firstprivate(a) firstprivate(this->a) firstprivate(s.a) // expected-error {{expected variable name or data member of current class}}
- for (int k = 0; k < s.a; ++k)
+ for (int k = 0; k < s.a; ++k) // expected-warning {{Non-trivial type 'S5' is mapped, only trivial types are guaranteed to be mapped correctly}}
++s.a;
return *this;
}
OpenPOWER on IntegriCloud