ignore invalid DOF provider sections
[binutils-gdb.git] / gdb / testsuite / gdb.cp / pr9167.cc
bloba0c50021da093b8fc5f6a2cfcb69e794df42c010
1 #include <iostream>
3 template<typename DATA>
4 struct ATB
6 int data;
7 ATB() : data(0) {}
8 };
11 template<typename DATA,
12 typename DerivedType >
13 class A : public ATB<DATA>
15 public:
16 static DerivedType const DEFAULT_INSTANCE;
19 template<typename DATA, typename DerivedType>
20 const DerivedType A<DATA, DerivedType>::DEFAULT_INSTANCE;
22 class B : public A<int, B>
27 int main()
29 B b;
30 // If this if-block is removed then GDB shall
31 // not infinitely recurse when trying to print b.
33 return 0; // marker