[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / g++.dg / debug / dwarf2 / imported-decl-2.C
blob8163a5feb05f992c0f8d554ff62c82bb01764f23
1 // { dg-do compile }
2 // { dg-options "-gdwarf-2 -gno-strict-dwarf -dA -O0 -fno-merge-debug-strings" }
4 class AAAA
6  public:
7   int method (void);
8   int a;
9 };
11 int
12 AAAA::method (void)
14   return a;
17 class BBBB : public AAAA
19  public:
20   using AAAA::method;
22   int method (int b);
25 int
26 BBBB::method (int b)
28   return a + b;
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* } } } }