gcc/testsuite/g++.dg/lang-dump.C
raw| 1 | // { dg-additional-options "-fdump-lang-all" } |
| 2 | // Just check we don't explode when asking for language dumps. Does |
| 3 | // not necessarily mean any particular language dump is useful. |
| 4 | |
| 5 | struct X |
| 6 | { |
| 7 | int m; |
| 8 | virtual ~X (); |
| 9 | }; |
| 10 | |
| 11 | X::~X () {} |
| 12 | |
| 13 | struct Y : X |
| 14 | { |
| 15 | }; |
| 16 | |
| 17 | int frob (int a) |
| 18 | { |
| 19 | return 2 * a; |
| 20 | } |
| 21 |