[PATCH 7/57][Arm][GAS] Add support for MVE instructions: vstr/vldr
[binutils-gdb.git] / gdb / testsuite / gdb.cp / casts.cc
blob543db896d3de9080882f2b5498b53146490a2a36
1 struct A
3 int a;
4 A (int aa): a (aa) {}
5 };
7 struct B: public A
9 int b;
10 B (int aa, int bb): A (aa), b(bb) {}
14 struct Alpha
16 virtual void x() { }
19 struct Gamma
23 struct Derived : public Alpha
27 struct VirtuallyDerived : public virtual Alpha
31 struct DoublyDerived : public VirtuallyDerived,
32 public virtual Alpha,
33 public Gamma
37 int
38 main (int argc, char **argv)
40 A *a = new B(42, 1729);
41 B *b = (B *) a;
42 A &ar = *b;
43 B &br = (B&)ar;
45 Derived derived;
46 DoublyDerived doublyderived;
48 Alpha *ad = &derived;
49 Alpha *add = &doublyderived;
51 return 0; /* breakpoint spot: casts.exp: 1 */