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 #include "rtti.h" 25 26 namespace n2 { 27 28 D2::D2(C2 *expr_1, C2 *expr_2) 29 : expr_1_(expr_1), expr_2_(expr_2) { } 30 31 C2 *create2() { 32 return new D2(0, 0); 33 } 34 35 n3::C3 *create3() { 36 return new n3::C3(); 37 } 38 39 } 40