public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix Changelog entry and add pr66896.C
@ 2015-12-07 15:05 Martin Liška
  2015-12-08 12:07 ` Bernd Schmidt
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Liška @ 2015-12-07 15:05 UTC (permalink / raw)
  To: GCC Patches; +Cc: Jakub Jelinek

[-- 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix Changelog entry and add pr66896.C
  2015-12-07 15:05 [PATCH] Fix Changelog entry and add pr66896.C Martin Liška
@ 2015-12-08 12:07 ` Bernd Schmidt
  0 siblings, 0 replies; 2+ messages in thread
From: Bernd Schmidt @ 2015-12-08 12:07 UTC (permalink / raw)
  To: Martin Liška, GCC Patches; +Cc: Jakub Jelinek

On 12/07/2015 04:05 PM, Martin Liška wrote:
> 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?

Sure.


Bernd

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-08 12:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-07 15:05 [PATCH] Fix Changelog entry and add pr66896.C Martin Liška
2015-12-08 12:07 ` Bernd Schmidt

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).