aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/debug/dwarf2/imported-decl-2.C
blob: ce01f72382a7032f7ca17dd32b27920881e76edc (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
25
26
27
28
29
30
31
32
// { dg-do compile }
// { dg-options "-gdwarf-2 -dA -O0 -fno-merge-debug-strings" }

class AAAA
{
 public:
  int method (void);
  int a;
};

int
AAAA::method (void)
{
  return a;
}

class BBBB : public AAAA
{
 public:
  using AAAA::method;

  int method (int b);
};

int
BBBB::method (int b)
{
  return a + b;
}

// { dg-final { scan-assembler-not "ascii \"BBBB\\\\0\".*ascii \"AAAA\\\\0\".*DW_TAG_imported_declaration" } }
// { dg-final { scan-assembler-times "ascii \"AAAA\\\\0\".*ascii \"BBBB\\\\0\".*DIE .0x\[0-9a-f\]*. DW_TAG_imported_declaration" 1 } }