| 1 |
// { dg-do compile } |
| 2 |
// { dg-options "-gdwarf-2 -gno-strict-dwarf -dA -O0 -fno-merge-debug-strings" } |
| 3 |
|
| 4 |
class AAAA |
| 5 |
{ |
| 6 |
public: |
| 7 |
int method (void); |
| 8 |
int a; |
| 9 |
}; |
| 10 |
|
| 11 |
int |
| 12 |
AAAA::method (void) |
| 13 |
{ |
| 14 |
return a; |
| 15 |
} |
| 16 |
|
| 17 |
class BBBB : public AAAA |
| 18 |
{ |
| 19 |
public: |
| 20 |
using AAAA::method; |
| 21 |
|
| 22 |
int method (int b); |
| 23 |
}; |
| 24 |
|
| 25 |
int |
| 26 |
BBBB::method (int b) |
| 27 |
{ |
| 28 |
return a + b; |
| 29 |
} |
| 30 |
|
| 31 |
// { dg-final { scan-assembler-not "ascii \"BBBB\\\\0\".*ascii \"AAAA\\\\0\".*DW_TAG_imported_declaration" } } |
| 32 |
// { dg-final { scan-assembler-times "ascii \"AAAA\\\\0\".*ascii \"BBBB\\\\0\".*DIE .0x\[0-9a-f\]*. DW_TAG_imported_declaration" 1 { xfail { powerpc-ibm-aix* } } } } |