aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-03-27 22:29:50 +0100
committerJakub Jelinek <jakub@redhat.com>2020-03-27 22:29:50 +0100
commit54de5afb4a9b2f7296f614820a33ec0e4eb8bf39 (patch)
tree6b05ffb3ad76e73c907b7f5b92b573bc5787d197 /gcc
parent52f24a9e989300506f812bacb8cc302a8bf03a06 (diff)
downloadgcc-54de5afb4a9b2f7296f614820a33ec0e4eb8bf39.zip
gcc-54de5afb4a9b2f7296f614820a33ec0e4eb8bf39.tar.gz
gcc-54de5afb4a9b2f7296f614820a33ec0e4eb8bf39.tar.bz2
c++: Handle COMPOUND_EXPRs in ocp_convert [PR94339]
With the PR94346 fix in, we can revert the attr-copy-2.C workaround. 2020-03-27 Jakub Jelinek <jakub@redhat.com> PR c++/94339 * g++.dg/ext/attr-copy-2.C: Revert the last changes.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/ext/attr-copy-2.C8
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 65d953c..7876b57 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2020-03-27 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/94339
+ * g++.dg/ext/attr-copy-2.C: Revert the last changes.
+
2020-03-27 Martin Sebor <msebor@redhat.com>
PR c++/94346
diff --git a/gcc/testsuite/g++.dg/ext/attr-copy-2.C b/gcc/testsuite/g++.dg/ext/attr-copy-2.C
index 7c47a15..7776959 100644
--- a/gcc/testsuite/g++.dg/ext/attr-copy-2.C
+++ b/gcc/testsuite/g++.dg/ext/attr-copy-2.C
@@ -36,8 +36,8 @@ typedef struct C
ATTR (copy (*(struct A *)(0, 1))) long m_xpa_0_1;
ATTR (copy (((struct A *)0)[0])) short m_arpa_0;
-// ATTR (copy (((struct A *)(1, 0))[0])) int m_arpa_1_0;
-// ATTR (copy (((struct A *)(0, 1))[0])) long m_arpa_0_1;
+ ATTR (copy (((struct A *)(1, 0))[0])) int m_arpa_1_0;
+ ATTR (copy (((struct A *)(0, 1))[0])) long m_arpa_0_1;
ATTR (copy (a)) short m_a;
ATTR (copy (b.a)) int m_b_a;
@@ -86,8 +86,8 @@ static_assert (__builtin_has_attribute (((C*)0)->m_xpa_0_1, packed));
static_assert (__builtin_has_attribute (((C*)0)->m_ra, packed));
static_assert (__builtin_has_attribute (((C*)0)->m_arpa_0, packed));
-//static_assert (__builtin_has_attribute (((C*)0)->m_arpa_1_0, packed));
-//static_assert (__builtin_has_attribute (((C*)0)->m_arpa_0_1, packed));
+static_assert (__builtin_has_attribute (((C*)0)->m_arpa_1_0, packed));
+static_assert (__builtin_has_attribute (((C*)0)->m_arpa_0_1, packed));
static_assert (__builtin_has_attribute (((C*)0)->m_a, packed));
static_assert (__builtin_has_attribute (((C*)0)->m_b_a, packed));