summaryrefslogtreecommitdiff
path: root/test/OpenMP/teams_firstprivate_messages.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2019-06-28 20:45:14 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2019-06-28 20:45:14 +0000
commit96d351f27a1f1087f32fda53253ea29d083ef7ee (patch)
treee5183eb700d41f98562ab369cb263095b4ba5027 /test/OpenMP/teams_firstprivate_messages.cpp
parentf34140f971606c009d868001c1193bd8c5dc7078 (diff)
downloadclang-96d351f27a1f1087f32fda53253ea29d083ef7ee.tar.gz
[OPENMP]Improve analysis of implicit captures.
If the variable is used in the OpenMP region implicitly, we need to check the data-sharing attributes for such variables and generate implicit clauses for them. Patch improves analysis of such variables for better handling of data-sharing rules. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@364683 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/OpenMP/teams_firstprivate_messages.cpp')
-rw-r--r--test/OpenMP/teams_firstprivate_messages.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/OpenMP/teams_firstprivate_messages.cpp b/test/OpenMP/teams_firstprivate_messages.cpp
index f04827708a..9bc5eeac6e 100644
--- a/test/OpenMP/teams_firstprivate_messages.cpp
+++ b/test/OpenMP/teams_firstprivate_messages.cpp
@@ -92,7 +92,7 @@ int main(int argc, char **argv) {
#pragma omp teams firstprivate(S1) // expected-error {{'S1' does not refer to a value}}
foo();
#pragma omp target
-#pragma omp teams firstprivate(a, b, c, d, f) // expected-error {{firstprivate variable with incomplete type 'S1'}}
+#pragma omp teams firstprivate(a, b, c, d, f) // expected-error {{incomplete type 'S1' where a complete type is required}} expected-error {{firstprivate variable with incomplete type 'S1'}}
foo();
#pragma omp target
#pragma omp teams firstprivate(argv[1]) // expected-error {{expected variable name}}