| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-fdiagnostics-set-output=text:experimental-nesting=yes" } */ |
| 3 |
|
| 4 |
extern void foo (void); |
| 5 |
|
| 6 |
void test_nesting (void) |
| 7 |
{ |
| 8 |
foo (); /* { dg-error "top-level error" } */ |
| 9 |
} |
| 10 |
|
| 11 |
/* { dg-begin-multiline-output "" } |
| 12 |
* child 0 |
| 13 |
* grandchild 0 0 |
| 14 |
* grandchild 0 1 |
| 15 |
* grandchild 0 2 |
| 16 |
* child 1 |
| 17 |
* grandchild 1 0 |
| 18 |
* grandchild 1 1 |
| 19 |
* grandchild 1 2 |
| 20 |
* child 2 |
| 21 |
* grandchild 2 0 |
| 22 |
* grandchild 2 1 |
| 23 |
* grandchild 2 2 |
| 24 |
{ dg-end-multiline-output "" } */ |