aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lang-dump.C
blob: b2eddafa79eebf6b336da0333fc313e55ec89ec5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}