Add a testcase for PR debug/r53860
authorZdenek Sojka <zsojka@seznam.cz>
Sat, 1 Dec 2012 16:08:41 +0000 (08:08 -0800)
committerH.J. Lu <hjl@gcc.gnu.org>
Sat, 1 Dec 2012 16:08:41 +0000 (08:08 -0800)
PR debug/r53860
* g++.dg/debug/pr53860.C: New test.

From-SVN: r194018

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/pr53860.C [new file with mode: 0644]

index 38193de..057f857 100644 (file)
@@ -1,5 +1,10 @@
+2012-12-01  Zdenek Sojka <zsojka@seznam.cz>
+
+       PR debug/r53860
+       * g++.dg/debug/pr53860.C: New test.
+
 2012-12-01   Alessandro Fanfarillo <alessandro.fanfarillo@gmail.com>
-             Paul Thomas  <pault@gcc.gnu.org>
+            Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/46897
        * gfortran.dg/defined_assignment_1.f90: New test.
diff --git a/gcc/testsuite/g++.dg/debug/pr53860.C b/gcc/testsuite/g++.dg/debug/pr53860.C
new file mode 100644 (file)
index 0000000..31a854a
--- /dev/null
@@ -0,0 +1,14 @@
+// PR debug/53860
+// { dg-do compile }
+// { dg-options "-fkeep-inline-functions -fdebug-types-section" }
+
+void
+foo ()
+{
+  struct S
+  {
+    S ()
+    {
+    }
+  };
+}