Handle void * conversions in FreeBSD/x86 native code to fix C++ build.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.cp / pr9167.cc
CommitLineData
0b66f317
CM
1#include <iostream>
2
3template<typename DATA>
4struct ATB
5{
6 int data;
7 ATB() : data(0) {}
8};
9
10
11template<typename DATA,
12 typename DerivedType >
13class A : public ATB<DATA>
14{
15public:
16 static DerivedType const DEFAULT_INSTANCE;
17};
18
19template<typename DATA, typename DerivedType>
20const DerivedType A<DATA, DerivedType>::DEFAULT_INSTANCE;
21
22class B : public A<int, B>
23{
24
25};
26
27int main()
28{
29 B b;
30 // If this if-block is removed then GDB shall
31 // not infinitely recurse when trying to print b.
32
33 return 0; // marker
34}
35
36
This page took 0.673261 seconds and 4 git commands to generate.