Patchwork [testcase] add testcase for PR53860

login
register
mail settings
Submitter Zdeněk Sojka
Date Dec. 1, 2012, 10:23 a.m.
Message ID <Pvr.2Wpz.1Zpa1D9l4W1.1GkTgS@seznam.cz>
Download mbox | patch
Permalink /patch/203115/
State New
Headers show

Comments

Zdeněk Sojka - Dec. 1, 2012, 10:23 a.m.
Hello,

as advised by Alexandre Oliva at 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53860#c3 , I am submitting a 
testcase for PR53860. If Ok, I need someone to commit this patch.
Tested by make check-g++.

Thanks,
Zdenek Sojka

Changelog:
PR debug/53860
* g++.dg/debug/pr53860.C: New testcase.
H.J. Lu - Dec. 1, 2012, 4:09 p.m.
On Sat, Dec 1, 2012 at 2:23 AM, Zdeněk Sojka <zsojka@seznam.cz> wrote:
> Hello,
>
> as advised by Alexandre Oliva at
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53860#c3 , I am submitting a
> testcase for PR53860. If Ok, I need someone to commit this patch.
> Tested by make check-g++.
>
> Thanks,
> Zdenek Sojka
>
> Changelog:
> PR debug/53860
> * g++.dg/debug/pr53860.C: New testcase.

I checked it for you.

Thanks.

Patch

Index: gcc/testsuite/g++.dg/debug/pr53860.C
===================================================================
--- gcc/testsuite/g++.dg/debug/pr53860.C	(revision 0)
+++ gcc/testsuite/g++.dg/debug/pr53860.C	(revision 0)
@@ -0,0 +1,14 @@ 
+// PR debug/53860
+// { dg-do compile }
+// { dg-options "-fkeep-inline-functions -fdebug-types-section" }
+
+void
+foo ()
+{
+  struct S
+  {
+    S ()
+    {
+    }
+  };
+}