summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/debug/dwarf2/pr41063.C
blob: f23efef13d21f2f63ee05452c756b19c03763041 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Contributed by Cary Coutant <ccoutant@google.com>
// Origin: PR debug/41063
// { dg-do compile }

struct A {
  virtual void run();
};

void test() {
  struct B : public A {
    void run() {
      struct C : public A {
	C() { }
	B *b_;
      };
      C c;
    }
  };
  B b;
}