public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Martin Liška" <mliska@suse.cz>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Cc: Jakub Jelinek <jakub@redhat.com>
Subject: [PATCH] Fix Changelog entry and add pr66896.C
Date: Mon, 07 Dec 2015 15:05:00 -0000	[thread overview]
Message-ID: <5665A044.3040505@suse.cz> (raw)

[-- Attachment #1: Type: text/plain, Size: 228 bytes --]

Hi.

As Jakub pointed out in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66896#c15, I forgot
to add a test-case to both GCC-5-branch and trunk.

May I please installed the suggested patch to both these branches?
Thanks,
Martin

[-- Attachment #2: 0001-Fix-ChangelogEntry-and-add-pr66896.C.patch --]
[-- Type: text/x-patch, Size: 1284 bytes --]

From 7df3eaa59c4b6ee9f011f35ee480e022fe77e0b3 Mon Sep 17 00:00:00 2001
From: marxin <mliska@suse.cz>
Date: Mon, 7 Dec 2015 16:00:31 +0100
Subject: [PATCH] Fix ChangelogEntry and add pr66896.C.

---
 gcc/testsuite/ChangeLog            |  2 +-
 gcc/testsuite/g++.dg/ipa/pr66896.C | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletion(-)
 create mode 100644 gcc/testsuite/g++.dg/ipa/pr66896.C

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ca604d2..7106276 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -10570,7 +10570,7 @@
 
 2015-07-16  Martin Liska  <mliska@suse.cz>
 
-	* g++.dg/ipa/pr66896.c: New test.
+	* g++.dg/ipa/pr66896.C: New test.
 
 2015-07-16  Richard Biener  <rguenther@suse.de>
 
diff --git a/gcc/testsuite/g++.dg/ipa/pr66896.C b/gcc/testsuite/g++.dg/ipa/pr66896.C
new file mode 100644
index 0000000..236537a
--- /dev/null
+++ b/gcc/testsuite/g++.dg/ipa/pr66896.C
@@ -0,0 +1,22 @@
+// PR ipa/66896
+// { dg-do compile }
+
+void f2 (void *);
+void f3 ();
+
+struct A
+{
+  int *a;
+  A ();
+  ~A () { a3 (); }
+  int a1 (int * p) { if (!p) f3 (); f2 (p); }
+  void a3 () { if (*a) a1 (a); }
+};
+
+struct B : A {~B () { a3 ();}};
+
+struct F {};
+
+struct G : F {B g;};
+
+void foo () {G g;}
-- 
2.6.3


             reply	other threads:[~2015-12-07 15:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-07 15:05 Martin Liška [this message]
2015-12-08 12:07 ` Bernd Schmidt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5665A044.3040505@suse.cz \
    --to=mliska@suse.cz \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).