Re: [PATCH] fix fdump-lang-raw ICE
authorNathan Sidwell <nathan@acm.org>
Thu, 2 Nov 2017 14:10:12 +0000 (14:10 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 2 Nov 2017 14:10:12 +0000 (14:10 +0000)
https://gcc.gnu.org/ml/gcc-patches/2017-11/msg00093.html
* g++.dg/lang-dump.C: New.

From-SVN: r254344

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lang-dump.C [new file with mode: 0644]

index bf8845c..206bd83 100644 (file)
@@ -1,3 +1,7 @@
+2017-11-02  Nathan Sidwell  <nathan@acm.org>
+
+       * g++.dg/lang-dump.C: New.
+
 2017-11-02  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/82795
diff --git a/gcc/testsuite/g++.dg/lang-dump.C b/gcc/testsuite/g++.dg/lang-dump.C
new file mode 100644 (file)
index 0000000..b2eddaf
--- /dev/null
@@ -0,0 +1,21 @@
+// { dg-additional-options "-fdump-lang-all" }
+// Just check we don't explode when asking for language dumps.  Does
+// not necessarily mean any particular language dump is useful.
+
+struct X 
+{
+  int m;
+  virtual ~X ();
+};
+
+X::~X () {}
+
+struct Y : X
+{
+};
+
+int frob (int a)
+{
+  return 2 * a;
+}
+