8c9168cc762f464bdc3c6469bbe47e21a3c229f2
1 /* Code to go along with tests in rtti.exp.
3 Copyright 2003, 2004, 2007, 2008, 2009, 2010, 2011
4 Free Software Foundation, Inc.
6 Contributed by David Carlton <carlton@bactrian.org> and by Kealia,
9 This file is part of GDB.
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.
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.
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/>. */
36 class C1
: public Base1
{
48 D1::D1(C1
*expr_1
, C1
*expr_2
)
49 : expr_1_(expr_1
), expr_2_(expr_2
) { }
57 // NOTE: carlton/2004-01-23: This call exists only to convince GCC to
58 // keep around a reference to 'obj' in n2::func - GCC 3.4 had been
59 // optimizing it away.
60 void refer_to (n2::C2
*obj
)
65 void refer_to (n2::n3::C3
*obj
)
76 refer_to (obj
); // func-constructs-done
85 C3
*obj3
= create3 ();
87 refer_to (obj3
); // func3-constructs-done
102 n2::func(); // main-constructs-done
This page took 0.031434 seconds and 4 git commands to generate.