blob: 4992f41913fa84fe2af309b6c827505c857baffd (
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
|
// PR debug/44668
// { dg-do compile }
// { dg-options "-g -dA" }
struct C
{
private:
typedef int a;
a b;
enum g { g1, g2 } h;
struct D { int i; } i;
protected:
typedef int c;
c d;
public:
typedef int e;
e f;
} c;
// 3 private DW_TAG_member dies, 1 private DW_TAG_typedef,
// 1 private DW_TAG_enumeration_type and 1 private DW_TAG_structure_type
// { dg-final { scan-assembler-times "3\[^\\r\\n\]* DW_AT_accessibility" 6 } }
// 1 private DW_TAG_member die, 1 private DW_TAG_typedef
// { dg-final { scan-assembler-times "2\[^\\r\\n\]* DW_AT_accessibility" 2 } }
|