Debian Codegraph @

gcc/testsuite/g++.dg/debug/dwarf2/typedef3.C

raw
1 // Origin: PR debug/44188
2 // { dg-options "-gdwarf-2 -dA" }
3 // { dg-do compile }
4
5 // { dg-final { scan-assembler-times "\[^\n\r\]*\\(DIE\[^\n\r\]*DW_TAG_typedef\\)" 1 } }
6
7 // { dg-final { scan-assembler-times "\[^\n\r\]*\\(DIE\[^\n\r\]*DW_TAG_structure_type\\)" 1 } }
8
9 typedef struct
10 {
11 int i;
12 } AAA;
13
14 int
15 main(void)
16 {
17 AAA aa;
18 return 0;
19 }