From: Nathan Sidwell Date: Thu, 2 Nov 2017 14:10:12 +0000 (+0000) Subject: Re: [PATCH] fix fdump-lang-raw ICE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3c3947b804f2bc33b0ec0a27e7993da6118f468a;p=gcc.git Re: [PATCH] fix fdump-lang-raw ICE https://gcc.gnu.org/ml/gcc-patches/2017-11/msg00093.html * g++.dg/lang-dump.C: New. From-SVN: r254344 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bf8845c063c..206bd83276b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2017-11-02 Nathan Sidwell + + * g++.dg/lang-dump.C: New. + 2017-11-02 Richard Biener 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 index 00000000000..b2eddafa79e --- /dev/null +++ b/gcc/testsuite/g++.dg/lang-dump.C @@ -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; +} +