diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2017-12-06 15:04:36 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-12-06 15:04:36 +0000 |
commit | 330ea9e419f00cbdfdf446b03a2d2fc9f66598ad (patch) | |
tree | eb2df326f9edbeb5c9c48e22bf2af53e1f893a0f /test/OpenMP | |
parent | f41523819eb4bc1a0259767cedc388af56ea4111 (diff) |
[OPENMP] Improve error message for mapping union members.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319897 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/OpenMP')
-rw-r--r-- | test/OpenMP/target_map_messages.cpp | 2 | ||||
-rw-r--r-- | test/OpenMP/target_teams_map_messages.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/OpenMP/target_map_messages.cpp b/test/OpenMP/target_map_messages.cpp index 0850d27f22..9ffbec4725 100644 --- a/test/OpenMP/target_map_messages.cpp +++ b/test/OpenMP/target_map_messages.cpp @@ -274,7 +274,7 @@ void SAclient(int arg) { {} #pragma omp target map((p+1)->A) // expected-error {{expected expression containing only member accesses and/or array sections based on named variables}} {} - #pragma omp target map(u.B) // expected-error {{mapped storage cannot be derived from a union}} + #pragma omp target map(u.B) // expected-error {{mapping of union members is not allowed}} {} #pragma omp target { diff --git a/test/OpenMP/target_teams_map_messages.cpp b/test/OpenMP/target_teams_map_messages.cpp index ae5f7bcdbc..7874c2e105 100644 --- a/test/OpenMP/target_teams_map_messages.cpp +++ b/test/OpenMP/target_teams_map_messages.cpp @@ -265,7 +265,7 @@ void SAclient(int arg) { {} #pragma omp target teams map((p+1)->A) // expected-error {{expected expression containing only member accesses and/or array sections based on named variables}} {} - #pragma omp target teams map(u.B) // expected-error {{mapped storage cannot be derived from a union}} + #pragma omp target teams map(u.B) // expected-error {{mapping of union members is not allowed}} {} #pragma omp target data map(to: r.C) //expected-note {{used here}} |