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