Commit | Line | Data |
---|---|---|
58da2eb2 DC |
1 | /* Code to go along with tests in rtti.exp. |
2 | ||
6aba47ca | 3 | Copyright 2003, 2004, 2007 Free Software Foundation, Inc. |
58da2eb2 DC |
4 | |
5 | Contributed by David Carlton <carlton@bactrian.org> and by Kealia, | |
6 | Inc. | |
7 | ||
8 | This file is part of GDB. | |
9 | ||
10 | This program is free software; you can redistribute it and/or modify | |
11 | it under the terms of the GNU General Public License as published by | |
12 | the Free Software Foundation; either version 2 of the License, or (at | |
13 | your option) any later version. | |
14 | ||
15 | This program is distributed in the hope that it will be useful, but | |
16 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
18 | General Public License for more details. | |
19 | ||
20 | You should have received a copy of the GNU General Public License | |
21 | along with this program; if not, write to the Free Software | |
22 | Foundation, Inc., 59 Temple Place - Suite 330, | |
23 | Boston, MA 02111-1307, USA. */ | |
24 | ||
25 | #include "rtti.h" | |
26 | ||
27 | namespace n2 { | |
28 | ||
29 | D2::D2(C2 *expr_1, C2 *expr_2) | |
30 | : expr_1_(expr_1), expr_2_(expr_2) { } | |
31 | ||
32 | C2 *create2() { | |
33 | return new D2(0, 0); | |
34 | } | |
35 | ||
1198ecbe DC |
36 | n3::C3 *create3() { |
37 | return new n3::C3(); | |
38 | } | |
39 | ||
58da2eb2 | 40 | } |