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 bf8845c063c7e81955b1c30c2ec39d7225ccf8d7..206bd83276bf9eff454dc9b7e19b66b5032212f8 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;
+}
+