summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/dwarf2/typedef4.C
blob: 2879f609983915d97b647bec8eba809a95fe06c1 (plain)
1
2
3
4
5
6
7
8
9
10
// Origin: PR debug/45171
// { dg-options "-g -dA -fno-eliminate-unused-debug-types" }
// { dg-do compile }

// There should be 2 real instances of byte_size -- one for the
// struct and one for "int".  The other two instances are from
// the comments in the .debug_abbrev section.
// { dg-final { scan-assembler-times "DW_AT_byte_size" 4 } }

typedef struct { int a, b; } x;