binutils/
[external/binutils.git] / gdb / testsuite / gdb.cp / rtti.h
1 /* Code to go along with tests in rtti.exp.
2    
3    Copyright 2003, 2004, 2007, 2008, 2009, 2010, 2011
4    Free Software Foundation, Inc.
5
6    Contributed by David Carlton <carlton@bactrian.org> and by Kealia,
7    Inc.
8
9    This file is part of GDB.
10
11    This program is free software; you can redistribute it and/or modify
12    it under the terms of the GNU General Public License as published by
13    the Free Software Foundation; either version 3 of the License, or
14    (at your option) any later version.
15
16    This program is distributed in the hope that it will be useful,
17    but WITHOUT ANY WARRANTY; without even the implied warranty of
18    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19    GNU General Public License for more details.
20
21    You should have received a copy of the GNU General Public License
22    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
23
24 namespace n2 {
25
26   class C2;
27
28   class Base2 {
29   public:
30     virtual ~Base2() { }
31   };
32
33
34   class C2: public Base2 {
35   public:
36   };
37
38   class D2 : public C2{
39   public:
40     D2(C2 *, C2 *);
41     
42     C2* expr_1_;
43     C2* expr_2_;
44   };
45
46   extern C2 *create2();
47
48   namespace n3 {
49     class C3 : public C2 {
50     public:
51     };
52   }
53
54   extern n3::C3 *create3();
55 }