summaryrefslogtreecommitdiffstats
path: root/test/OpenMP/distribute_simd_private_messages.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2018-10-29 20:17:42 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2018-10-29 20:17:42 +0000
commit07f7de8aad8f86617d77dc52ce9c74bf58be421d (patch)
tree870aa4b4b4df5ccf00a5c78e7bb41eff27ab5e8b /test/OpenMP/distribute_simd_private_messages.cpp
parentbe4dd87db5c62788465a361b57604b1f4785b7b8 (diff)
[OPENMP]Fix PR39372: Does not complain about loop bound variable not
being shared. According to the standard, the variables with unspecified data-sharing attributes in presence of `default(none)` clause must be reported to users. Compiler did not generate error reports for the variables used in other OpenMP regions. Patch fixes this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@345533 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/OpenMP/distribute_simd_private_messages.cpp')
-rw-r--r--test/OpenMP/distribute_simd_private_messages.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/OpenMP/distribute_simd_private_messages.cpp b/test/OpenMP/distribute_simd_private_messages.cpp
index 8d82cc8166..1fdb97dceb 100644
--- a/test/OpenMP/distribute_simd_private_messages.cpp
+++ b/test/OpenMP/distribute_simd_private_messages.cpp
@@ -49,7 +49,7 @@ public:
#pragma omp target
#pragma omp teams
#pragma omp distribute simd private(a) private(this->a) private(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;
}